ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/client.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 8395 by michael, Sun Mar 18 13:14:35 2018 UTC vs.
Revision 8399 by michael, Sun Mar 18 14:43:15 2018 UTC

# Line 981 | Line 981 | dead_link_on_read(struct Client *client_
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,

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)