summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-01-06 12:48:27 -0300
committerdequis <dx@dxzone.com.ar>2017-01-06 12:49:56 -0300
commit1831a8e1a710decbbcae524c60cdf6216f19a121 (patch)
tree0e5fdd245eecfdaeced56436c378527252db9603 /src/irc
parenta40d4492d2c26ae5a6d8e9f37f085dd76affd888 (diff)
downloadirssi-1831a8e1a710decbbcae524c60cdf6216f19a121.zip
Don't reset wait_cmd during connection registration (fixes early ISON)
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/core/irc-servers.c6
1 files changed, 6 insertions, 0 deletions
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