From 1a9a3eeeefd453a21244b37ba2530868b8f72014 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 19 Aug 2025 12:18:50 +0200 Subject: [PATCH] Log ERROR comment. --- ircplom/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ircplom/client.py b/ircplom/client.py index 692625b..b51ab90 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -709,7 +709,8 @@ class Client(ABC, ClientQueueMixin): self.send(IrcMessage('AUTHENTICATE', ('PLAIN',))) else: self._caps.end_negotiation() - elif self._match_msg(msg, 'ERROR'): + elif (ret := self._match_msg(msg, 'ERROR')): + self._db.connection_state = ret['any'] self.close() elif (ret := self._match_msg(msg, 'JOIN')): log_msg = f'{ret["sender"]} {msg.verb.lower()}s {ret["ch_name"]}' -- 2.30.2