mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
Make m_set compile.
This commit is contained in:
parent
194590a38b
commit
fa8328508d
3 changed files with 7 additions and 3 deletions
|
@ -113,4 +113,6 @@ extern void charybdis_io_loop(void);
|
|||
|
||||
extern int testing_conf;
|
||||
|
||||
extern struct ev_entry *check_splitmode_ev;
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue