From 1831a8e1a710decbbcae524c60cdf6216f19a121 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 6 Jan 2017 12:48:27 -0300 Subject: Don't reset wait_cmd during connection registration (fixes early ISON) --- src/irc/core/irc-servers.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c index 3117e345..7cbd05a0 100644 --- a/src/irc/core/irc-servers.c +++ b/src/irc/core/irc-servers.c @@ -527,6 +527,12 @@ void irc_server_send_data(IRC_SERVER_REC *server, const char *data, int len) return; } + /* Don't reset wait_cmd during connection registration + * (while sending CAP / SASL related commands) */ + if (!server->connected) { + return; + } + g_get_current_time(&server->last_cmd); /* A bit kludgy way to do the flood protection. In ircnet, there -- cgit v1.2.3