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

Comparing ircd-hybrid-7.2/src/s_user.c (file contents):
Revision 716 by adx, Sat Jul 15 10:22:58 2006 UTC vs.
Revision 849 by db, Mon Feb 19 19:41:59 2007 UTC

# Line 95 | Line 95 | unsigned int user_modes[256] =
95    0,                  /* @ */
96    0,                  /* A */
97    0,                  /* B */
98 <  0,                  /* C */
98 >  UMODE_CCONN_FULL,   /* C */
99    UMODE_DEAF,         /* D */
100    0,                  /* E */
101    0,                  /* F */
# Line 445 | Line 445 | register_local_user(struct Client *clien
445                         "255.255.255.255" : ipaddr, get_client_class(source_p),
446                         source_p->info);
447  
448 +  sendto_realops_flags(UMODE_CCONN_FULL, L_ALL,
449 +                       "CLICONN %s %s %s %s %s %s %s 0 %s",
450 +                       nick, source_p->username, source_p->host,
451 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
452 +                       "255.255.255.255" : ipaddr,
453 +                       get_client_class(source_p),
454 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
455 +                           "<hidden>" : source_p->client_host,
456 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
457 +                           "<hidden>" : source_p->client_server,
458 +                       source_p->info);
459 +
460 +
461    /* If they have died in send_* don't do anything. */
462    if (IsDead(source_p))
463      return;
# Line 838 | Line 851 | do_local_user(const char *nick, struct C
851  
852    strlcpy(source_p->info, realname, sizeof(source_p->info));
853  
854 +  /* stash for later */
855 +  strlcpy(source_p->client_host, host, sizeof(source_p->client_host));
856 +  strlcpy(source_p->client_server, server, sizeof(source_p->client_server));
857 +
858    if (!IsGotId(source_p))
859    {
860      /* save the username in the client
# Line 1050 | Line 1067 | set_user_mode(struct Client *client_p, s
1067   /* send_umode()
1068   * send the MODE string for user (user) to connection client_p
1069   * -avalon
1070 + *
1071 + * inputs       - client_p
1072 + *              - source_p
1073 + *              - int old
1074 + *              - sendmask mask of modes to send
1075 + *              - suplied umode_buf
1076 + * output       - NONE
1077   */
1078   void
1079   send_umode(struct Client *client_p, struct Client *source_p,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines