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; |
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 */ |
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; |
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] = '+'; |
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 |
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, |