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

Diff of /ircd-hybrid/modules/core/m_sjoin.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 88  ms_sjoin(struct Client *client_p, struct Line 88  ms_sjoin(struct Client *client_p, struct
88    time_t         newts;    time_t         newts;
89    time_t         oldts;    time_t         oldts;
90    time_t         tstosend;    time_t         tstosend;
91    static         struct Mode mode, *oldmode;    struct Mode mode, *oldmode;
92    int            args = 0;    int            args = 0;
93    char           keep_our_modes = YES;    char           keep_our_modes = YES;
94    char           keep_new_modes = YES;    char           keep_new_modes = YES;
# Line 99  ms_sjoin(struct Client *client_p, struct Line 99  ms_sjoin(struct Client *client_p, struct
99    char           *np, *up;    char           *np, *up;
100    int            len_nick = 0;    int            len_nick = 0;
101    int            len_uid = 0;    int            len_uid = 0;
102    int            isnew;    int            isnew = 0;
103    int            buflen = 0;    int            buflen = 0;
104    int            slen;    int            slen;
105    unsigned       int fl;    unsigned       int fl;
# Line 120  ms_sjoin(struct Client *client_p, struct Line 120  ms_sjoin(struct Client *client_p, struct
120    if (*parv[2] != '#')    if (*parv[2] != '#')
121      return;      return;
122    
123    if (!check_channel_name(parv[2]))    if (!check_channel_name(parv[2], 0))
124      {
125        sendto_realops_flags(UMODE_DEBUG, L_ALL,
126                             "*** Too long or invalid channel name from %s: %s",
127                             client_p->name, parv[2]);
128      return;      return;
129      }
130    
131    modebuf[0] = '\0';    modebuf[0] = '\0';
132    mbuf = modebuf;    mbuf = modebuf;
# Line 172  ms_sjoin(struct Client *client_p, struct Line 177  ms_sjoin(struct Client *client_p, struct
177    
178    parabuf[0] = '\0';    parabuf[0] = '\0';
179    
180    if ((chptr = get_or_create_channel(source_p, parv[2], &isnew)) == NULL)    if ((chptr = hash_find_channel(parv[2])) == NULL)
181      return; /* channel name too long? */    {
182        isnew = 1;
183        chptr = make_channel(parv[2]);
184      }
185    
186    oldts   = chptr->channelts;    oldts   = chptr->channelts;
187    oldmode = &chptr->mode;    oldmode = &chptr->mode;

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

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