mirror of
https://github.com/weechat/weechat.git
synced 2026-06-29 14:26:39 +02:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user