Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-08-14 03:54:58 UTC
Modified files:
Tag: u2_10_12_branch
ircd/m_who.c ChangeLog
Log message:
At paulr's suggestion, make WHO and WHOIS more similar w.r.t. ERR_QUERYTOOLONG.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.200 ircu2.10/ChangeLog:1.710.2.201
--- ircu2.10/ChangeLog:1.710.2.200 Mon Aug 13 20:04:05 2007
+++ ircu2.10/ChangeLog Mon Aug 13 20:54:48 2007
@@ -1,5 +1,10 @@
2007-08-13 Michael Poole <[EMAIL PROTECTED]>
+ * 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 <[EMAIL PROTECTED]>
+
* ircd/s_user.c (register_user): Initialize umodev[] in a
C89-compatible way. (gcc 4.1.2 warned about it.)
Index: ircu2.10/ircd/m_who.c
diff -u ircu2.10/ircd/m_who.c:1.22.2.2 ircu2.10/ircd/m_who.c:1.22.2.3
--- ircu2.10/ircd/m_who.c:1.22.2.2 Sat Nov 4 13:35:28 2006
+++ ircu2.10/ircd/m_who.c Mon Aug 13 20:54:48 2007
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: m_who.c,v 1.22.2.2 2006/11/04 21:35:28 entrope Exp $
+ * $Id: m_who.c,v 1.22.2.3 2007/08/14 03:54:48 entrope Exp $
*/
/*
@@ -466,11 +466,10 @@
/* 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;
}
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches