home
·
contact
·
privacy
projects
/
ircplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f86ae
)
Handle 432 with aborting connection.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 18 Aug 2025 15:52:35 +0000
(17:52 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 18 Aug 2025 15:52:35 +0000
(17:52 +0200)
ircplom/client.py
patch
|
blob
|
history
diff --git
a/ircplom/client.py
b/ircplom/client.py
index 05ea0ddc10d926ec1214af48af247412b86c879b..248a3ba68e5702ae84d3e403099e3e1b40eacc86 100644
(file)
--- a/
ircplom/client.py
+++ b/
ircplom/client.py
@@
-530,6
+530,9
@@
class Client(ABC, ClientQueueMixin):
# '@'-split because <https://defs.ircdocs.horse/defs/numerics>
# claims: "<hostname> can also be in the form <user@hostname>"
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)