From: Michael Poole Date: Tue, 14 Aug 2007 03:54:48 +0000 (+0000) Subject: At paulr's suggestion, make WHO and WHOIS more similar w.r.t. ERR_QUERYTOOLONG. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=f73d5d407b6e3ac1712e0e21b859c3568ea1ba3f At paulr's suggestion, make WHO and WHOIS more similar w.r.t. ERR_QUERYTOOLONG. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1829 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- diff --git a/ChangeLog b/ChangeLog index 043cf2b..49c14fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-13 Michael Poole + + * ircd/m_who.c (m_who): Reorder responses and change the + ERR_QUERYTOOLONG parameter to be consistent with m_whois(). + 2007-08-13 Michael Poole * ircd/s_user.c (register_user): Initialize umodev[] in a 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; }