35 |
|
#include "irc_string.h" |
36 |
|
#include "sprintf_irc.h" |
37 |
|
#include "s_bsd.h" |
38 |
– |
#include "irc_getnameinfo.h" |
38 |
|
#include "ircd.h" |
39 |
|
#include "list.h" |
40 |
|
#include "listener.h" |
286 |
|
const char *nick, const char *username) |
287 |
|
{ |
288 |
|
const struct AccessItem *aconf = NULL; |
290 |
– |
char ipaddr[HOSTIPLEN]; |
289 |
|
dlink_node *ptr = NULL; |
290 |
|
dlink_node *m = NULL; |
291 |
|
|
433 |
|
hash_add_id(source_p); |
434 |
|
} |
435 |
|
|
438 |
– |
irc_getnameinfo((struct sockaddr *)&source_p->localClient->ip, |
439 |
– |
source_p->localClient->ip.ss_len, ipaddr, |
440 |
– |
HOSTIPLEN, NULL, 0, NI_NUMERICHOST); |
441 |
– |
|
436 |
|
sendto_realops_flags(UMODE_CCONN, L_ALL, |
437 |
|
"Client connecting: %s (%s@%s) [%s] {%s} [%s]", |
438 |
|
nick, source_p->username, source_p->host, |
439 |
|
ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ? |
440 |
< |
"255.255.255.255" : ipaddr, get_client_class(source_p), |
440 |
> |
"255.255.255.255" : source_p->sockhost, |
441 |
> |
get_client_class(source_p), |
442 |
|
source_p->info); |
443 |
|
|
444 |
|
sendto_realops_flags(UMODE_CCONN_FULL, L_ALL, |
445 |
|
"CLICONN %s %s %s %s %s %s %s 0 %s", |
446 |
|
nick, source_p->username, source_p->host, |
447 |
|
ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ? |
448 |
< |
"255.255.255.255" : ipaddr, |
448 |
> |
"255.255.255.255" : source_p->sockhost, |
449 |
|
get_client_class(source_p), |
450 |
|
ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ? |
451 |
|
"<hidden>" : source_p->client_host, |