ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/channel_mode.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/channel_mode.c (file contents):
Revision 3140 by michael, Wed Mar 12 19:23:20 2014 UTC vs.
Revision 3141 by michael, Wed Mar 12 19:35:27 2014 UTC

# Line 1495 | Line 1495 | send_mode_changes_server(struct Client *
1495      if (mode_changes[i].letter == 0) /* XXX: can it ever happen? */
1496        continue;
1497  
1498 <    arg = mode_changes[i].id;
1498 >    if (mode_changes[i].id)
1499 >      arg = mode_changes[i].id;
1500 >    else
1501 >      arg = mode_changes[i].arg;
1502 >
1503 >    if (arg != NULL)
1504 >      arglen = strlen(arg);
1505 >    else
1506 >      arglen = 0;
1507 >
1508  
1509      /*
1510       * If we're creeping past the buf size, we need to send it and make
1511       * another line for the other modes
1512       */
1504    arglen = strlen(arg);
1505
1513      if ((mc == MAXMODEPARAMS) ||
1514          ((arglen + mbl + pbl + 2) > IRCD_BUFSIZE) ||
1515          (pbl + arglen + BAN_FUDGE) >= MODEBUFLEN)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines