diff --git a/src/ircd.c b/src/ircd.c index 2a6b3625..2d87e2d5 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -680,7 +680,7 @@ main(int argc, char *argv[]) eventAdd("check_rehash", check_rehash, NULL, 1); if(splitmode) - check_splitmode_ev = eventAdd("check_splitmode", check_splitmode, NULL, 2); + check_splitmode_ev = rb_event_add("check_splitmode", check_splitmode, NULL, 2); ServerRunning = 1;