| 121 |
|
ConfigChannel.max_bans)) |
| 122 |
|
{ |
| 123 |
|
sendto_one_numeric(client, &me, ERR_BANLISTFULL, channel->name, banid); |
| 124 |
< |
return false; |
| 124 |
> |
return NULL; |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
collapse(mask); |
| 243 |
|
{ |
| 244 |
|
static char mask[MODEBUFLEN]; |
| 245 |
|
dlink_node *node; |
| 246 |
+ |
|
| 247 |
|
assert(banid); |
| 248 |
|
|
| 249 |
|
/* TBD: n!u@h formatting fo local clients */ |
| 380 |
|
chm_simple(struct Client *client, struct Channel *channel, int parc, int *parn, char **parv, |
| 381 |
|
int *errors, int alev, int dir, const char c, const struct chan_mode *mode) |
| 382 |
|
{ |
| 383 |
< |
if (mode->only_opers) |
| 383 |
> |
if (mode->only_opers == true) |
| 384 |
|
{ |
| 385 |
|
if (MyClient(client) && !HasUMode(client, UMODE_OPER)) |
| 386 |
|
{ |
| 392 |
|
} |
| 393 |
|
} |
| 394 |
|
|
| 395 |
< |
if (mode->only_servers) |
| 395 |
> |
if (mode->only_servers == true) |
| 396 |
|
{ |
| 397 |
|
if (!IsServer(client) && !HasFlag(client, FLAGS_SERVICE)) |
| 398 |
|
{ |
| 756 |
|
static void |
| 757 |
|
send_mode_changes_server(struct Client *client, struct Channel *channel) |
| 758 |
|
{ |
| 759 |
< |
char modebuf[IRCD_BUFSIZE] = ""; |
| 760 |
< |
char parabuf[IRCD_BUFSIZE] = ""; |
| 759 |
> |
char modebuf[IRCD_BUFSIZE]; |
| 760 |
> |
char parabuf[IRCD_BUFSIZE]; |
| 761 |
|
char *parptr = parabuf; |
| 762 |
|
unsigned int mbl = 0, pbl = 0, arglen = 0, modecount = 0, paracount = 0; |
| 763 |
|
unsigned int dir = MODE_QUERY; |
| 844 |
|
|
| 845 |
|
for (unsigned int pass = 2; pass--; flags = CHFL_CHANOP | CHFL_HALFOP) |
| 846 |
|
{ |
| 847 |
< |
char modebuf[IRCD_BUFSIZE] = ""; |
| 848 |
< |
char parabuf[IRCD_BUFSIZE] = ""; |
| 847 |
> |
char modebuf[IRCD_BUFSIZE]; |
| 848 |
> |
char parabuf[IRCD_BUFSIZE]; |
| 849 |
|
char *parptr = parabuf; |
| 850 |
|
unsigned int mbl = 0, pbl = 0, arglen = 0, modecount = 0, paracount = 0; |
| 851 |
|
unsigned int dir = MODE_QUERY; |