Thanks to paulr for highlighting where the problem was.
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1845
c9e4aea6-c8fd-4c43-8297-
357d70d61c8c
+2007-11-24 Michael Poole <mdpoole@troilus.org>
+
+ * 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 <mdpoole@troilus.org>
* ircd/m_stats.c (m_stats): Properly assign param before it is
/* 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;