/[svn]/ircd-hybrid/modules/m_names.c
ViewVC logotype

Diff of /ircd-hybrid/modules/m_names.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 490 by db, Fri Feb 17 05:07:43 2006 UTC revision 491 by michael, Wed Mar 1 14:51:05 2006 UTC
# Line 87  m_names(struct Client *client_p, struct Line 87  m_names(struct Client *client_p, struct
87      if (*para == '\0')      if (*para == '\0')
88        return;        return;
89    
90      if (!check_channel_name(para))      if (!check_channel_name(para, 0))
91      {      {
92        sendto_one(source_p, form_str(ERR_BADCHANNAME),        sendto_one(source_p, form_str(ERR_BADCHANNAME),
93                   me.name, source_p->name, para);                   me.name, source_p->name, para);
# Line 118  m_names(struct Client *client_p, struct Line 118  m_names(struct Client *client_p, struct
118  static void  static void
119  names_all_visible_channels(struct Client *source_p)  names_all_visible_channels(struct Client *source_p)
120  {  {
121    dlink_node *ptr;    dlink_node *ptr = NULL;
   struct Channel *chptr;  
122    
123    /*    /*
124     * First, do all visible channels (public and the one user self is)     * First, do all visible channels (public and the one user self is)
125     */     */
126    DLINK_FOREACH(ptr, global_channel_list.head)    DLINK_FOREACH(ptr, global_channel_list.head)
   {  
     chptr = ptr->data;  
   
127      /* Find users on same channel (defined by chptr) */      /* Find users on same channel (defined by chptr) */
128      channel_member_names(source_p, chptr, 0);      channel_member_names(source_p, ptr->data, 0);
   }  
129  }  }
130    
131  /* names_non_public_non_secret()  /* names_non_public_non_secret()
# Line 151  names_non_public_non_secret(struct Clien Line 146  names_non_public_non_secret(struct Clien
146    char buf[IRCD_BUFSIZE];    char buf[IRCD_BUFSIZE];
147    char *t;    char *t;
148    
149    mlen = ircsprintf(buf,form_str(RPL_NAMREPLY),    mlen = ircsprintf(buf, form_str(RPL_NAMREPLY),
150                      me.name, source_p->name, "*", "*");                      me.name, source_p->name, "*", "*");
151    cur_len = mlen;    cur_len = mlen;
152    t = buf + mlen;    t = buf + mlen;

Legend:
Removed from v.490  
changed lines
  Added in v.491

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28