patch 26503ca5b65894059c3fff76cc5462c45f357428
Author: E. Bosch <presidev@AT@gmail.com>
Date: Fri Feb 4 19:31:39 CET 2022
* irc: Fix when nick is not allowed (when the user is already registered) in
NICK command
diff -rN -u old-irgramd/irc.py new-irgramd/irc.py
--- old-irgramd/irc.py 2024-11-22 15:43:13.360474858 +0100
+++ new-irgramd/irc.py 2024-11-22 15:43:13.360474858 +0100
@@ -173,7 +173,10 @@
user.registered = True
await self.send_greeting(user)
else:
- await self.reply_code(user, 'ERR_PASSWDMISMATCH')
+ if user.registered:
+ await self.reply_code(user, 'ERR_ERRONEUSNICKNAME', (nick,))
+ else:
+ await self.reply_code(user, 'ERR_PASSWDMISMATCH')
async def handle_irc_userhost(self, user, **nicks):
niv = nicks.values()