summaryrefslogtreecommitdiff
path: root/src/irc/core/irc-servers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/core/irc-servers.c')
-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