|
@@ -253,6 +253,14 @@ ContextNote("rebalance_roles");
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+static void warn_pls_take()
|
|
|
|
|
+{
|
|
|
|
|
+ struct chanset_t *chan;
|
|
|
|
|
+ for (chan = chanset; chan; chan = chan->next)
|
|
|
|
|
+ if (channel_take(chan))
|
|
|
|
|
+ putlog(LOG_WARN, "@", "%s is set +take!", chan->dname);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
static void channels_checkslowjoin() {
|
|
static void channels_checkslowjoin() {
|
|
|
struct chanset_t * chan;
|
|
struct chanset_t * chan;
|
|
|
Context;
|
|
Context;
|
|
@@ -883,6 +891,7 @@ static char *channels_close()
|
|
|
rem_tcl_ints(my_tcl_ints);
|
|
rem_tcl_ints(my_tcl_ints);
|
|
|
rem_tcl_coups(mychan_tcl_coups);
|
|
rem_tcl_coups(mychan_tcl_coups);
|
|
|
del_hook(HOOK_USERFILE, (Function) channels_writeuserfile);
|
|
del_hook(HOOK_USERFILE, (Function) channels_writeuserfile);
|
|
|
|
|
+ del_hook(HOOK_HOURLY, (Function) warn_pls_take);
|
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
|
#ifdef S_IRCNET
|
|
#ifdef S_IRCNET
|
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_exempts);
|
|
del_hook(HOOK_MINUTELY, (Function) check_expired_exempts);
|
|
@@ -1042,6 +1051,7 @@ char *channels_start(Function * global_funcs)
|
|
|
#ifdef HUB
|
|
#ifdef HUB
|
|
|
add_hook(HOOK_30SECONDLY, (Function) rebalance_roles);
|
|
add_hook(HOOK_30SECONDLY, (Function) rebalance_roles);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
+ add_hook(HOOK_HOURLY, (Function) warn_pls_take);
|
|
|
add_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
add_hook(HOOK_MINUTELY, (Function) check_expired_bans);
|
|
|
#ifdef S_IRCNET
|
|
#ifdef S_IRCNET
|
|
|
add_hook(HOOK_MINUTELY, (Function) check_expired_exempts);
|
|
add_hook(HOOK_MINUTELY, (Function) check_expired_exempts);
|