X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=ircd%2Fm_who.c;h=f344e6f2e88587250d73f1e348a1e772c0dfbfb0;hb=1570a04e15bec6b2945e4351b1e05211aecdcacc;hp=9ee0f074d0bdddc9fa69443e51b231fb09491575;hpb=d3ebaa4b31bf4fc58150bed0afb33259f9530fa2;p=ircu2.10.12-pk.git diff --git a/ircd/m_who.c b/ircd/m_who.c index 9ee0f07..f344e6f 100644 --- a/ircd/m_who.c +++ b/ircd/m_who.c @@ -466,11 +466,10 @@ int m_who(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) /* Make a clean mask suitable to be sent in the "end of" */ if (mask && (p = strchr(mask, ' '))) *p = '\0'; - send_reply(sptr, RPL_ENDOFWHO, BadPtr(mask) ? "*" : mask); - /* Notify the user if we decided that his query was too long */ if (counter < 0) - send_reply(sptr, ERR_QUERYTOOLONG, "WHO"); + send_reply(sptr, ERR_QUERYTOOLONG, BadPtr(mask) ? "*" : mask); + send_reply(sptr, RPL_ENDOFWHO, BadPtr(mask) ? "*" : mask); return 0; }