mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
relay: set status to AUTH_FAILED in case of auth failure in weechat protocol (closes #825)
This commit is contained in:
@@ -211,6 +211,9 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(init)
|
||||
weechat_string_free_split_command (options);
|
||||
}
|
||||
|
||||
if (!RELAY_WEECHAT_DATA(client, password_ok))
|
||||
relay_client_set_status (client, RELAY_STATUS_AUTH_FAILED);
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
@@ -1383,7 +1386,7 @@ relay_weechat_protocol_recv (struct t_relay_client *client, const char *data)
|
||||
* then close connection!
|
||||
*/
|
||||
relay_client_set_status (client,
|
||||
RELAY_STATUS_DISCONNECTED);
|
||||
RELAY_STATUS_AUTH_FAILED);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user