47 |
|
dlink_list channel_list; |
48 |
|
mp_pool_t *ban_pool; /*! \todo ban_pool shouldn't be a global var */ |
49 |
|
|
50 |
+ |
struct event splitmode_event = |
51 |
+ |
{ |
52 |
+ |
.name = "check_splitmode", |
53 |
+ |
.handler = check_splitmode, |
54 |
+ |
.when = 10 |
55 |
+ |
}; |
56 |
+ |
|
57 |
|
static mp_pool_t *member_pool, *channel_pool; |
58 |
|
static char buf[IRCD_BUFSIZE]; |
59 |
|
|
851 |
|
|
852 |
|
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
853 |
|
"Network split, activating splitmode"); |
854 |
< |
eventAddIsh("check_splitmode", check_splitmode, NULL, 10); |
854 |
> |
event_add(&splitmode_event, NULL); |
855 |
|
} |
856 |
|
else if (splitmode && (server >= split_servers) && (Count.total >= split_users)) |
857 |
|
{ |
859 |
|
|
860 |
|
sendto_realops_flags(UMODE_ALL, L_ALL, SEND_NOTICE, |
861 |
|
"Network rejoined, deactivating splitmode"); |
862 |
< |
eventDelete(check_splitmode, NULL); |
862 |
> |
event_delete(&splitmode_event); |
863 |
|
} |
864 |
|
} |
865 |
|
} |