Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2007-11-25 02:43:04 UTC
Modified files:
Tag: u2_10_12_branch
ircd/m_names.c ChangeLog
Log message:
Show users on second (and later) lines of RPL_NAMREPLY correctly.
Thanks to paulr for highlighting where the problem was.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.215 ircu2.10/ChangeLog:1.710.2.216
--- ircu2.10/ChangeLog:1.710.2.215 Sat Nov 17 06:21:02 2007
+++ ircu2.10/ChangeLog Sat Nov 24 18:42:54 2007
@@ -1,3 +1,9 @@
+2007-11-24 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/m_names.c (do_names): Don't try to re-initialize the start
+ of buf[] for each line. It's done the first time around and that
+ can be reused safely.
+
2007-11-17 Michael Poole <[EMAIL PROTECTED]>
* ircd/m_stats.c (m_stats): Properly assign param before it is
Index: ircu2.10/ircd/m_names.c
diff -u ircu2.10/ircd/m_names.c:1.22.2.3 ircu2.10/ircd/m_names.c:1.22.2.4
--- ircu2.10/ircd/m_names.c:1.22.2.3 Mon Aug 13 20:02:24 2007
+++ ircu2.10/ircd/m_names.c Sat Nov 24 18:42:54 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_names.c,v 1.22.2.3 2007/08/14 03:02:24 entrope Exp $
+ * $Id: m_names.c,v 1.22.2.4 2007/11/25 02:42:54 entrope Exp $
*/
/*
@@ -179,14 +179,6 @@
/* space, modifier, nick, \r \n \0 */
{
send_reply(sptr, (filter & NAMES_DEL) ? RPL_DELNAMREPLY : RPL_NAMREPLY,
buf);
- strcpy(buf, "* ");
- ircd_strncpy(buf + 2, chptr->chname, len + 1);
- buf[len + 2] = ':';
- buf[len + 3] = '\0';
- if (PubChannel(chptr))
- *buf = '=';
- else if (SecretChannel(chptr))
- *buf = '@';
idx = len + 4;
flag = 0;
needs_space=0;
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches