* 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.1 2005/10/06 04:00:26 entrope Exp $
+ * $Id: m_names.c,v 1.22.2.2 2005/11/17 00:05:00 entrope Exp $
*/
/*
/* 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] = 0;
- strcat(buf, " :");
- if (PubChannel(chptr))
- *buf = '=';
- else if (SecretChannel(chptr))
- *buf = '@';
idx = len + 4;
flag = 0;
needs_space=0;
s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. Eww. */
if (s) {
- parv[1+showingdelayed] = ++s;
+ *s++ = '\0';
+ parv[1+showingdelayed] = s;
m_names(cptr, sptr, parc, parv);
}
s = strchr(para, ','); /* Recursively call m_names for each comma-separated channel. */
if (s) {
- parv[1+!!showingdelayed] = ++s;
+ *s++ = '\0';
+ parv[1+!!showingdelayed] = s;
m_names(cptr, sptr, parc, parv);
}