summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-10-18 09:35:04 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-10-18 09:35:04 +0200
commit30e48336f46ff68598e9007445dbfa9f5dd00865 (patch)
tree8c4884436ae79657d315f88c84efffbe396ef68e /src
parent2807a8374b7a1bb717feb8c9fbc6e94a1d58fb78 (diff)
downloadweechat-30e48336f46ff68598e9007445dbfa9f5dd00865.zip
irc: remove SASL timeout message displayed by error after successful SASL authentication (closes #1515)
The SASL timer is removed immediately when the SASL authentication is successful or has failed.
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-protocol.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c
index aab804e6d..8a6b3ac0b 100644
--- a/src/plugins/irc/irc-protocol.c
+++ b/src/plugins/irc/irc-protocol.c
@@ -6372,6 +6372,12 @@ IRC_PROTOCOL_CALLBACK(901)
IRC_PROTOCOL_CALLBACK(sasl_end_ok)
{
+ if (server->hook_timer_sasl)
+ {
+ weechat_unhook (server->hook_timer_sasl);
+ server->hook_timer_sasl = NULL;
+ }
+
irc_protocol_cb_numeric (server,
date, nick, address, host, command,
ignored, argc, argv, argv_eol);
@@ -6393,6 +6399,12 @@ IRC_PROTOCOL_CALLBACK(sasl_end_fail)
{
int sasl_fail;
+ if (server->hook_timer_sasl)
+ {
+ weechat_unhook (server->hook_timer_sasl);
+ server->hook_timer_sasl = NULL;
+ }
+
irc_protocol_cb_numeric (server,
date, nick, address, host, command,
ignored, argc, argv, argv_eol);