diff options
author | dequis <dx@dxzone.com.ar> | 2017-01-06 12:48:27 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2017-01-06 12:49:56 -0300 |
commit | 1831a8e1a710decbbcae524c60cdf6216f19a121 (patch) | |
tree | 0e5fdd245eecfdaeced56436c378527252db9603 /src | |
parent | a40d4492d2c26ae5a6d8e9f37f085dd76affd888 (diff) | |
download | irssi-1831a8e1a710decbbcae524c60cdf6216f19a121.zip |
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 |