/[svn]/ircd-hybrid-7.2/src/s_user.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/s_user.c

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

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

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

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