projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
At paulr's suggestion, make WHO and WHOIS more similar w.r.t. ERR_QUERYTOOLONG.
[ircu2.10.12-pk.git]
/
ircd
/
m_who.c
diff --git
a/ircd/m_who.c
b/ircd/m_who.c
index 9ee0f074d0bdddc9fa69443e51b231fb09491575..f344e6f2e88587250d73f1e348a1e772c0dfbfb0 100644
(file)
--- 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';
/* 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)
/* 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;
}
return 0;
}