From 22fc666f965da946656968ddfa0be417d142d4fa Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Mon, 18 Aug 2025 17:52:35 +0200 Subject: [PATCH] Handle 432 with aborting connection. --- ircplom/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ircplom/client.py b/ircplom/client.py index 05ea0dd..248a3ba 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -530,6 +530,9 @@ class Client(ABC, ClientQueueMixin): # '@'-split because # claims: " can also be in the form " self._db.client_host = msg.params[1].split('@')[-1] + elif msg.match('432', 3): # ERR_ERRONEOUSNICKNAME + self._log('nickname refused for bad format, giving up', alert=True) + self.close() elif msg.match('433', 3): # ERR_NICKNAMEINUSE new_nick = self._db.nick_incremented self._log('nickname already in use, trying {new_nick}', alert=True) -- 2.30.2