| 78 |
|
static void ban_them(struct Client *, struct MaskItem *); |
| 79 |
|
|
| 80 |
|
|
| 81 |
< |
/* init_client() |
| 81 |
> |
/* client_init() |
| 82 |
|
* |
| 83 |
|
* inputs - NONE |
| 84 |
|
* output - NONE |
| 85 |
|
* side effects - initialize client free memory |
| 86 |
|
*/ |
| 87 |
|
void |
| 88 |
< |
init_client(void) |
| 88 |
> |
client_init(void) |
| 89 |
|
{ |
| 90 |
|
/* start off the check ping event .. -- adrian |
| 91 |
|
* Every 30 seconds is plenty -- db |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
if ((conf = find_matching_name_conf(CONF_XLINE, client_p->info, |
| 394 |
< |
NULL, NULL, 0)) != NULL || |
| 395 |
< |
(conf = find_matching_name_conf(CONF_RXLINE, client_p->info, |
| 396 |
< |
NULL, NULL, 0)) != NULL) |
| 394 |
> |
NULL, NULL, 0))) |
| 395 |
|
{ |
| 396 |
|
ban_them(client_p, conf); |
| 397 |
|
continue; |
| 434 |
|
|
| 435 |
|
switch (conf->type) |
| 436 |
|
{ |
| 439 |
– |
case CONF_RKLINE: |
| 437 |
|
case CONF_KLINE: |
| 438 |
|
type_string = kline_string; |
| 439 |
|
break; |
| 443 |
|
case CONF_GLINE: |
| 444 |
|
type_string = gline_string; |
| 445 |
|
break; |
| 449 |
– |
case CONF_RXLINE: |
| 446 |
|
case CONF_XLINE: |
| 447 |
|
type_string = xline_string; |
| 448 |
|
++conf->count; |
| 918 |
|
*/ |
| 919 |
|
close_connection(source_p); |
| 920 |
|
} |
| 921 |
+ |
else if (IsClient(source_p) && HasFlag(source_p->servptr, FLAGS_EOB)) |
| 922 |
+ |
sendto_realops_flags(UMODE_FARCONNECT, L_ALL, SEND_NOTICE, |
| 923 |
+ |
"Client exiting at %s: %s (%s@%s) [%s]", |
| 924 |
+ |
source_p->servptr->name, source_p->name, |
| 925 |
+ |
source_p->username, source_p->host, comment); |
| 926 |
|
|
| 927 |
|
if (IsServer(source_p)) |
| 928 |
|
{ |
| 1183 |
|
unsigned int idle = 0; |
| 1184 |
|
unsigned int min_idle = 0; |
| 1185 |
|
unsigned int max_idle = 0; |
| 1186 |
< |
struct ClassItem *class = get_class_ptr(&target_p->localClient->confs); |
| 1186 |
> |
const struct ClassItem *class = get_class_ptr(&target_p->localClient->confs); |
| 1187 |
|
|
| 1188 |
< |
if (target_p == source_p) |
| 1188 |
> |
if (!(class->flags & CLASS_FLAGS_FAKE_IDLE) || target_p == source_p) |
| 1189 |
|
return CurrentTime - target_p->localClient->last_privmsg; |
| 1190 |
|
if (HasUMode(source_p, UMODE_OPER) && |
| 1191 |
< |
(!(class->flags & CLASS_FLAGS_HIDE_IDLE_FROM_OPERS))) |
| 1191 |
> |
!(class->flags & CLASS_FLAGS_HIDE_IDLE_FROM_OPERS)) |
| 1192 |
|
return CurrentTime - target_p->localClient->last_privmsg; |
| 1193 |
|
|
| 1194 |
|
min_idle = class->min_idle; |