ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/s_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 876 by michael, Wed Oct 24 21:51:21 2007 UTC

# Line 55 | Line 55
55   #include "s_misc.h"
56   #include "msg.h"
57   #include "pcre.h"
58 + #include "watch.h"
59  
60   int MaxClientCount     = 1;
61   int MaxConnectionCount = 1;
# Line 95 | Line 96 | unsigned int user_modes[256] =
96    0,                  /* @ */
97    0,                  /* A */
98    0,                  /* B */
99 <  0,                  /* C */
99 >  UMODE_CCONN_FULL,   /* C */
100    UMODE_DEAF,         /* D */
101    0,                  /* E */
102    0,                  /* F */
# Line 445 | Line 446 | register_local_user(struct Client *clien
446                         "255.255.255.255" : ipaddr, get_client_class(source_p),
447                         source_p->info);
448  
449 +  sendto_realops_flags(UMODE_CCONN_FULL, L_ALL,
450 +                       "CLICONN %s %s %s %s %s %s %s 0 %s",
451 +                       nick, source_p->username, source_p->host,
452 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
453 +                       "255.255.255.255" : ipaddr,
454 +                       get_client_class(source_p),
455 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
456 +                           "<hidden>" : source_p->client_host,
457 +                       ConfigFileEntry.hide_spoof_ips && IsIPSpoof(source_p) ?
458 +                           "<hidden>" : source_p->client_server,
459 +                       source_p->info);
460 +
461 +
462    /* If they have died in send_* don't do anything. */
463    if (IsDead(source_p))
464      return;
# Line 587 | Line 601 | introduce_client(struct Client *client_p
601    else
602      send_umode(NULL, source_p, 0, SEND_UMODES, ubuf);
603  
604 +  watch_check_hash(source_p, RPL_LOGON);
605 +
606    if (*ubuf == '\0')
607    {
608      ubuf[0] = '+';
# Line 838 | Line 854 | do_local_user(const char *nick, struct C
854  
855    strlcpy(source_p->info, realname, sizeof(source_p->info));
856  
857 +  /* stash for later */
858 +  strlcpy(source_p->client_host, host, sizeof(source_p->client_host));
859 +  strlcpy(source_p->client_server, server, sizeof(source_p->client_server));
860 +
861    if (!IsGotId(source_p))
862    {
863      /* save the username in the client
# Line 1050 | Line 1070 | set_user_mode(struct Client *client_p, s
1070   /* send_umode()
1071   * send the MODE string for user (user) to connection client_p
1072   * -avalon
1073 + *
1074 + * inputs       - client_p
1075 + *              - source_p
1076 + *              - int old
1077 + *              - sendmask mask of modes to send
1078 + *              - suplied umode_buf
1079 + * output       - NONE
1080   */
1081   void
1082   send_umode(struct Client *client_p, struct Client *source_p,

Diff Legend

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