/[svn]/ircd-hybrid-8/src/s_conf.c
ViewVC logotype

Diff of /ircd-hybrid-8/src/s_conf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.885  
changed lines
  Added in v.891

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26