diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2017-01-07 22:00:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-07 22:00:00 +0100 |
commit | 7c09b72a26884bcd9711f39e2730ab09e658eec1 (patch) | |
tree | d14131198c6772243653090cb3f0897ac9be2844 /src | |
parent | 808a11a15078356aad767364ed2e07a9001cb6ec (diff) | |
parent | 1831a8e1a710decbbcae524c60cdf6216f19a121 (diff) | |
download | irssi-7c09b72a26884bcd9711f39e2730ab09e658eec1.zip |
Merge pull request #605 from dequis/fix-early-ison
Don't reset wait_cmd during connection registration (fixes early ISON)
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/core/irc-servers.c | 6 |
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 |