90 |
|
static void |
91 |
|
add_accept(const struct split_nuh_item *nuh, struct Client *source_p) |
92 |
|
{ |
93 |
< |
struct split_nuh_item *const accept_p = xcalloc(sizeof(*accept_p)); |
93 |
> |
struct split_nuh_item *accept_p = xcalloc(sizeof(*accept_p)); |
94 |
|
|
95 |
|
accept_p->nickptr = xstrdup(nuh->nickptr); |
96 |
|
accept_p->userptr = xstrdup(nuh->userptr); |
155 |
|
} |
156 |
|
else if (*mask) |
157 |
|
{ |
158 |
< |
if (dlink_list_length(&source_p->connection->acceptlist) >= |
159 |
< |
ConfigGeneral.max_accept) |
158 |
> |
if (dlink_list_length(&source_p->connection->acceptlist) >= ConfigGeneral.max_accept) |
159 |
|
{ |
160 |
|
sendto_one_numeric(source_p, &me, ERR_ACCEPTFULL); |
161 |
|
return 0; |