0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-28 01:32:43 +01:00
construct/modules/core
Keith Buck 8db50c03e6 BAN: Don't schedule check_klines for 0 seconds in the future.
When receiving bans from a bursting server, if kline_delay is set to 0
(the default), rb_event_addonce will be called to schedule an event for
0 seconds in the future. While this works fine for the fallback
rb_event_run function, the epoll implementation ends up scheduling a
timerfd for the event in the past, which is then never executed.

While fixing this, I also made rb_event_add and rb_event_addonce reject
attempts to add events scheduled for 0 seconds in the future; they're
instead rewritten to run 1 second in the future.
2014-08-17 09:06:01 +00:00
..
m_ban.c BAN: Don't schedule check_klines for 0 seconds in the future. 2014-08-17 09:06:01 +00:00
m_die.c irc_string.h -> match.h, irc_string.h; includes changed 2008-04-20 09:47:38 +04:00
m_error.c Update comments for parv[0] removal. 2009-01-18 18:22:43 +01:00
m_join.c SJOIN: Fix crash when both mode parameter and UID list are missing. 2014-08-15 17:10:24 +02:00
m_kick.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_kill.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_message.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_mode.c Avoid possible null dereference. 2014-03-03 00:02:10 +01:00
m_nick.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_part.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_quit.c Update comments for parv[0] removal. 2009-01-18 18:22:43 +01:00
m_server.c Remove trailing whitespace from all .c and .h files. 2014-03-03 04:25:47 +00:00
m_squit.c Update comments for parv[0] removal. 2009-01-18 18:22:43 +01:00