981 |
|
{ |
982 |
|
if (error == 0) |
983 |
|
{ |
984 |
– |
/* Admins get the real IP */ |
984 |
|
sendto_realops_flags(UMODE_SERVNOTICE, L_ADMIN, SEND_NOTICE, |
985 |
|
"Server %s closed the connection", |
986 |
|
client_get_name(client_p, SHOW_IP)); |
988 |
– |
|
989 |
– |
/* Opers get a masked IP */ |
987 |
|
sendto_realops_flags(UMODE_SERVNOTICE, L_OPER, SEND_NOTICE, |
988 |
|
"Server %s closed the connection", |
989 |
|
client_get_name(client_p, MASK_IP)); |
993 |
– |
|
990 |
|
ilog(LOG_TYPE_IRCD, "Server %s closed the connection", |
991 |
|
client_get_name(client_p, SHOW_IP)); |
992 |
|
} |
993 |
|
else |
994 |
|
{ |
995 |
< |
report_error(L_ADMIN, "Lost connection to %s: %s", |
996 |
< |
client_get_name(client_p, SHOW_IP), current_error); |
997 |
< |
report_error(L_OPER, "Lost connection to %s: %s", |
998 |
< |
client_get_name(client_p, MASK_IP), current_error); |
995 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_ADMIN, SEND_NOTICE, |
996 |
> |
"Lost connection to %s: %s", |
997 |
> |
client_get_name(client_p, SHOW_IP), strerror(current_error)); |
998 |
> |
sendto_realops_flags(UMODE_SERVNOTICE, L_OPER, SEND_NOTICE, |
999 |
> |
"Lost connection to %s: %s", |
1000 |
> |
client_get_name(client_p, MASK_IP), strerror(current_error)); |
1001 |
> |
ilog(LOG_TYPE_IRCD, "Lost connection to %s: %s", |
1002 |
> |
client_get_name(client_p, SHOW_IP), strerror(current_error)); |
1003 |
|
} |
1004 |
|
|
1005 |
|
sendto_realops_flags(UMODE_SERVNOTICE, L_ALL, SEND_NOTICE, |