diff --git a/include/ircd.h b/include/ircd.h index 2b0d7b5a..652f20d1 100644 --- a/include/ircd.h +++ b/include/ircd.h @@ -113,4 +113,6 @@ extern void charybdis_io_loop(void); extern int testing_conf; +extern struct ev_entry *check_splitmode_ev; + #endif diff --git a/modules/m_set.c b/modules/m_set.c index d79b2bbe..c27cd95e 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -380,7 +380,7 @@ quote_splitmode(struct Client *source_p, char *charval) splitmode = 0; splitchecking = 0; - rb_event_delete(check_splitmode, NULL); + rb_event_delete(check_splitmode_ev); } /* ON */ else if(newval == 1) @@ -393,7 +393,7 @@ quote_splitmode(struct Client *source_p, char *charval) splitchecking = 0; /* we might be deactivating an automatic splitmode, so pull the event */ - rb_event_delete(check_splitmode, NULL); + rb_event_delete(check_splitmode_ev); } /* AUTO */ else if(newval == 2) diff --git a/src/ircd.c b/src/ircd.c index 7c57228d..2a6b3625 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -452,6 +452,8 @@ setup_corefile(void) #endif } +struct ev_entry *check_splitmode_ev = NULL; + /* * main * @@ -678,7 +680,7 @@ main(int argc, char *argv[]) eventAdd("check_rehash", check_rehash, NULL, 1); if(splitmode) - eventAdd("check_splitmode", check_splitmode, NULL, 2); + check_splitmode_ev = eventAdd("check_splitmode", check_splitmode, NULL, 2); ServerRunning = 1;