| 1 |
|
/* |
| 2 |
|
* ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd) |
| 3 |
|
* |
| 4 |
< |
* Copyright (c) 1997-2016 ircd-hybrid development team |
| 4 |
> |
* Copyright (c) 1997-2018 ircd-hybrid development team |
| 5 |
|
* |
| 6 |
|
* This program is free software; you can redistribute it and/or modify |
| 7 |
|
* it under the terms of the GNU General Public License as published by |
| 119 |
|
{ |
| 120 |
|
sendto_realops_flags(UMODE_DEBUG, L_ADMIN, SEND_NOTICE, |
| 121 |
|
"Unknown prefix (%s) from %s, Squitting %s", |
| 122 |
< |
lbuffer, get_client_name(client_p, SHOW_IP), lsender); |
| 122 |
> |
lbuffer, client_get_name(client_p, SHOW_IP), lsender); |
| 123 |
|
sendto_realops_flags(UMODE_DEBUG, L_OPER, SEND_NOTICE, |
| 124 |
|
"Unknown prefix (%s) from %s, Squitting %s", |
| 125 |
< |
lbuffer, get_client_name(client_p, MASK_IP), lsender); |
| 125 |
> |
lbuffer, client_get_name(client_p, MASK_IP), lsender); |
| 126 |
|
sendto_one(client_p, ":%s SQUIT %s :(Unknown prefix (%s) from %s)", |
| 127 |
|
me.id, lsender, lbuffer, client_p->name); |
| 128 |
|
} |
| 251 |
|
if (IsDefunct(client_p)) |
| 252 |
|
return; |
| 253 |
|
|
| 254 |
< |
assert(client_p->connection->fd.flags.open); |
| 254 |
> |
assert(client_p->connection); |
| 255 |
> |
assert(client_p->connection->fd); |
| 256 |
> |
assert(client_p->connection->fd->flags.open); |
| 257 |
> |
|
| 258 |
> |
|
| 259 |
|
assert((bufend - pbuffer) < IRCD_BUFSIZE); |
| 260 |
|
|
| 261 |
|
for (ch = pbuffer; *ch == ' '; ++ch) /* Skip spaces */ |
| 298 |
|
sendto_realops_flags(UMODE_DEBUG, L_ADMIN, SEND_NOTICE, |
| 299 |
|
"Fake direction: dropped message from %s[%s] via %s", |
| 300 |
|
from->name, from->from->name, |
| 301 |
< |
get_client_name(client_p, SHOW_IP)); |
| 301 |
> |
client_get_name(client_p, SHOW_IP)); |
| 302 |
|
sendto_realops_flags(UMODE_DEBUG, L_OPER, SEND_NOTICE, |
| 303 |
|
"Fake direction: dropped message from %s[%s] via %s", |
| 304 |
|
from->name, from->from->name, |
| 305 |
< |
get_client_name(client_p, MASK_IP)); |
| 305 |
> |
client_get_name(client_p, MASK_IP)); |
| 306 |
|
return; |
| 307 |
|
} |
| 308 |
|
} |
| 467 |
|
*/ |
| 468 |
|
if ((ntree_p = mtree_p->pointers[*cmd & (MAXPTRLEN - 1)]) == NULL) |
| 469 |
|
{ |
| 470 |
< |
ntree_p = xcalloc(sizeof(struct MessageTree)); |
| 470 |
> |
ntree_p = xcalloc(sizeof(*ntree_p)); |
| 471 |
|
mtree_p->pointers[*cmd & (MAXPTRLEN - 1)] = ntree_p; |
| 472 |
|
|
| 473 |
|
mtree_p->links++; /* Have new pointer, so up ref count */ |