38 |
|
#include "irc_string.h" |
39 |
|
#include "sprintf_irc.h" |
40 |
|
#include "s_bsd.h" |
41 |
– |
#include "irc_getnameinfo.h" |
41 |
|
#include "irc_getaddrinfo.h" |
42 |
|
#include "ircd.h" |
43 |
|
#include "list.h" |
856 |
|
break; |
857 |
|
|
858 |
|
case NOT_AUTHORIZED: |
860 |
– |
{ |
861 |
– |
static char ipaddr[HOSTIPLEN]; |
859 |
|
ServerStats->is_ref++; |
860 |
|
/* jdc - lists server name & port connections are on */ |
861 |
|
/* a purely cosmetical change */ |
865 |
– |
irc_getnameinfo((struct sockaddr*)&source_p->localClient->ip, |
866 |
– |
source_p->localClient->ip.ss_len, ipaddr, HOSTIPLEN, NULL, 0, |
867 |
– |
NI_NUMERICHOST); |
862 |
|
sendto_realops_flags(UMODE_UNAUTH, L_ALL, |
863 |
|
"Unauthorized client connection from %s [%s] on [%s/%u].", |
864 |
|
get_client_name(source_p, SHOW_IP), |
865 |
< |
ipaddr, |
865 |
> |
source_p->sockhost, |
866 |
|
source_p->localClient->listener->name, |
867 |
|
source_p->localClient->listener->port); |
868 |
|
ilog(L_INFO, |
885 |
|
else |
886 |
|
exit_client(source_p, &me, "You are not authorized to use this server"); |
887 |
|
break; |
888 |
< |
} |
895 |
< |
|
888 |
> |
|
889 |
|
case BANNED_CLIENT: |
890 |
|
/* |
891 |
|
* Don't exit them immediately, play with them a bit. |