Make m_set compile.

This commit is contained in:
William Pitcock 2008-04-01 16:25:22 -05:00
parent 04949155a9
commit ccfe0e9712
3 changed files with 7 additions and 3 deletions

View File

@ -113,4 +113,6 @@ extern void charybdis_io_loop(void);
extern int testing_conf; extern int testing_conf;
extern struct ev_entry *check_splitmode_ev;
#endif #endif

View File

@ -380,7 +380,7 @@ quote_splitmode(struct Client *source_p, char *charval)
splitmode = 0; splitmode = 0;
splitchecking = 0; splitchecking = 0;
rb_event_delete(check_splitmode, NULL); rb_event_delete(check_splitmode_ev);
} }
/* ON */ /* ON */
else if(newval == 1) else if(newval == 1)
@ -393,7 +393,7 @@ quote_splitmode(struct Client *source_p, char *charval)
splitchecking = 0; splitchecking = 0;
/* we might be deactivating an automatic splitmode, so pull the event */ /* we might be deactivating an automatic splitmode, so pull the event */
rb_event_delete(check_splitmode, NULL); rb_event_delete(check_splitmode_ev);
} }
/* AUTO */ /* AUTO */
else if(newval == 2) else if(newval == 2)

View File

@ -452,6 +452,8 @@ setup_corefile(void)
#endif #endif
} }
struct ev_entry *check_splitmode_ev = NULL;
/* /*
* main * main
* *
@ -678,7 +680,7 @@ main(int argc, char *argv[])
eventAdd("check_rehash", check_rehash, NULL, 1); eventAdd("check_rehash", check_rehash, NULL, 1);
if(splitmode) if(splitmode)
eventAdd("check_splitmode", check_splitmode, NULL, 2); check_splitmode_ev = eventAdd("check_splitmode", check_splitmode, NULL, 2);
ServerRunning = 1; ServerRunning = 1;