/[svn]/ircd-hybrid-7.2/modules/core/m_join.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/modules/core/m_join.c

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

revision 493 by michael, Wed Mar 1 12:40:31 2006 UTC revision 494 by michael, Wed Mar 1 16:26:31 2006 UTC
# Line 126  m_join(struct Client *client_p, struct C Line 126  m_join(struct Client *client_p, struct C
126    struct Channel *chptr = NULL;    struct Channel *chptr = NULL;
127    int i = 0;    int i = 0;
128    unsigned int flags = 0;    unsigned int flags = 0;
   unsigned int error_reported = 0;  
129    
130    if (*parv[1] == '\0')    if (*parv[1] == '\0')
131    {    {
# Line 190  m_join(struct Client *client_p, struct C Line 189  m_join(struct Client *client_p, struct C
189          (!IsOper(source_p) || (dlink_list_length(&source_p->channel) >=          (!IsOper(source_p) || (dlink_list_length(&source_p->channel) >=
190                                 ConfigChannel.max_chans_per_user * 3)))                                 ConfigChannel.max_chans_per_user * 3)))
191      {      {
192        if (!error_reported++)        sendto_one(source_p, form_str(ERR_TOOMANYCHANNELS),
193          sendto_one(source_p, form_str(ERR_TOOMANYCHANNELS),                   me.name, source_p->name, chan);
194                     me.name, source_p->name, chan);        break;
       continue;  
195      }      }
196    
197      if ((chptr = hash_find_channel(chan)) != NULL)      if ((chptr = hash_find_channel(chan)) != NULL)

Legend:
Removed from v.493  
changed lines
  Added in v.494

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