From fa8328508d49ad5932f588c97d52bc31c5e0ef04 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Tue, 1 Apr 2008 16:25:22 -0500 Subject: [PATCH] Make m_set compile. --- include/ircd.h | 2 ++ modules/m_set.c | 4 ++-- src/ircd.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/ircd.h b/include/ircd.h index 2b0d7b5a0..652f20d1c 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 d79b2bbe1..c27cd95ef 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 7c57228d4..2a6b36254 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;