Author: Isomer <isomer@coders.net>
[ircu2.10.12-pk.git] / ircd / s_user.c
index cf34ba2566876e014f04807576f1cc42bc1f0c72..6029736cbc363d7c136a0090ac9ba81db89fe104 100644 (file)
@@ -191,7 +191,7 @@ int hunt_server_cmd(struct Client *from, const char *cmd, const char *tok,
   struct Client *acptr;
   char *to;
 
-  if (MustBeOper && !IsPrivileged(acptr))
+  if (MustBeOper && !IsPrivileged(from))
   {
     send_reply(from, ERR_NOPRIVILEGES);
     return HUNTED_NOSUCH;