X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/9f6c335332cb357b4bf5f991387087f907f6e55c..8e43b0b4146cdbacec61e83e8b8251c0b5a090c9:/modules/m_kline.c diff --git a/modules/m_kline.c b/modules/m_kline.c index e557cb6..66a3b7f 100644 --- a/modules/m_kline.c +++ b/modules/m_kline.c @@ -25,7 +25,6 @@ */ #include "stdinc.h" -#include "tools.h" #include "channel.h" #include "class.h" #include "client.h" @@ -35,7 +34,6 @@ #include "ircd.h" #include "hostmask.h" #include "numeric.h" -#include "commio.h" #include "s_conf.h" #include "s_newconf.h" #include "s_log.h" @@ -45,7 +43,6 @@ #include "msg.h" #include "parse.h" #include "modules.h" -#include "event.h" #include "reject.h" static int mo_kline(struct Client *, struct Client *, int, const char **); @@ -214,7 +211,7 @@ mo_kline(struct Client *client_p, struct Client *source_p, { if(kline_queued == 0) { - eventAddOnce("check_klines", check_klines_event, NULL, + rb_event_addonce("check_klines", check_klines_event, NULL, ConfigFileEntry.kline_delay); kline_queued = 1; } @@ -330,7 +327,7 @@ handle_remote_kline(struct Client *source_p, int tkline_time, { if(kline_queued == 0) { - eventAddOnce("check_klines", check_klines_event, NULL, + rb_event_addonce("check_klines", check_klines_event, NULL, ConfigFileEntry.kline_delay); kline_queued = 1; }