+2007-08-13 Michael Poole <mdpoole@troilus.org>
+
+ * 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 <mdpoole@troilus.org>
* ircd/s_user.c (register_user): Initialize umodev[] in a
/* 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;
}