From d9830ef4546067925cc4658a4fa74ceaff80a462 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 13 Aug 2025 15:37:39 +0200 Subject: [PATCH] Re-instate parsing of 001 for determining our nickname. --- ircplom/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircplom/client.py b/ircplom/client.py index 49006ed..96c40c2 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -306,7 +306,9 @@ class Client(ABC, ClientQueueMixin): 'Log msg.raw, then process incoming msg into appropriate client steps.' self._log(msg.raw, scope=LogScope.RAW, out=False) match msg.verb: - case '001' | '002' | '003' | '004': + case '001' | 'NICK': + self._update_db('nickname', value=msg.params[0], confirm=True) + case '002' | '003' | '004': pass # explicitly ignored verbs/numerics case '375': self._db.set('motd', [], False) @@ -324,8 +326,6 @@ class Client(ABC, ClientQueueMixin): self.send(IrcMessage(verb='PONG', params=(msg.params[0],))) case 'ERROR': self.close() - case '001' | 'NICK': - self._update_db('nickname', value=msg.params[0], confirm=True) case 'NOTICE' | 'PRIVMSG': scope = LogScope.CHAT if '!' in msg.source else LogScope.SERVER self._log(msg.params[-1], scope=scope, channel=msg.params[0], -- 2.30.2