added basic ssl support to ircu
[ircu2.10.12-pk.git] / ircd / m_privs.c
index ed4494b0eceb3260cfb7250d4c2ccbd00e236442..f39915eee334f2faf9c26a3624ad834c1106598b 100644 (file)
@@ -59,7 +59,7 @@ int mo_privs(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     for (name = ircd_strtok(&p, parv[i], " "); name;
         name = ircd_strtok(&p, 0, " ")) {
       if (!(acptr = FindUser(name)))
-        continue;
+        send_reply(sptr, ERR_NOSUCHNICK, name);
       else if (MyUser(acptr))
        client_report_privs(sptr, acptr);
       else
@@ -94,7 +94,7 @@ int ms_privs(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
       else if (MyUser(acptr))
        client_report_privs(sptr, acptr);
       else
-        sendcmdto_one(cptr, CMD_PRIVS, acptr, "%s%s", NumNick(acptr));
+        sendcmdto_one(sptr, CMD_PRIVS, acptr, "%s%s", NumNick(acptr));
     }
   }