/[svn]/ircd-hybrid/branches/8.2.x/src/channel.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/channel.c

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

revision 6544 by michael, Sat Aug 29 18:51:51 2015 UTC revision 6545 by michael, Wed Sep 16 19:54:01 2015 UTC
# Line 958  channel_do_join(struct Client *source_p, Line 958  channel_do_join(struct Client *source_p,
958    
959    chan_list = channel_find_last0(source_p, channel);    chan_list = channel_find_last0(source_p, channel);
960    
961    for (chan = strtoken(&p, chan_list, ","); chan;    for (chan = strtok_r(chan_list, ",", &p); chan;
962         chan = strtoken(&p,      NULL, ","))         chan = strtok_r(NULL,      ",", &p))
963    {    {
964      const char *key = NULL;      const char *key = NULL;
965    
# Line 1164  channel_do_part(struct Client *source_p, Line 1164  channel_do_part(struct Client *source_p,
1164    if (!EmptyString(reason))    if (!EmptyString(reason))
1165      strlcpy(buf, reason, sizeof(buf));      strlcpy(buf, reason, sizeof(buf));
1166    
1167    for (name = strtoken(&p, channel, ","); name;    for (name = strtok_r(channel, ",", &p); name;
1168         name = strtoken(&p,    NULL, ","))         name = strtok_r(NULL,    ",", &p))
1169      channel_part_one_client(source_p, name, buf);      channel_part_one_client(source_p, name, buf);
1170  }  }

Legend:
Removed from v.6544  
changed lines
  Added in v.6545

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