patch 1e24fbe344b94c6bd9a5d5cc75250227c80da5ee Author: E. Bosch Date: Fri Feb 4 19:18:34 CET 2022 * irc: Fix when nick is the current in NICK command diff -rN -u old-irgramd/irc.py new-irgramd/irc.py --- old-irgramd/irc.py 2024-11-22 21:27:46.083632374 +0100 +++ new-irgramd/irc.py 2024-11-22 21:27:46.083632374 +0100 @@ -150,6 +150,9 @@ self.logger.debug('Handling NICK: %s', nick) ni = nick.lower() + current = user.irc_nick.lower() if user.irc_nick else None + if ni == current: + return if not user.valid_nick(nick): await self.reply_code(user, 'ERR_ERRONEUSNICKNAME', (nick,), '*') elif ni in self.users.keys(): @@ -158,7 +161,6 @@ or user.local_auth(nick, self.conf['irc_nicks'], user.recv_pass, self.conf['irc_password'], self.conf['pam']): if user.registered: # rename - current = user.irc_nick.lower() await self.send_users_irc(user, 'NICK', (nick,)) del self.users[current] for ch in self.irc_channels.keys():