react to pre-reg ERR_ERRONEUSNICKNAME the same as ERR_NICKNAMEINUSE

This commit is contained in:
jesopo 2021-09-11 15:40:18 +00:00
parent fb93d59c43
commit 64935c7a8d
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Server(IServer):
self._pending_who.popleft()
await self._next_who()
elif (line.command == ERR_NICKNAMEINUSE and
elif (line.command in {ERR_NICKNAMEINUSE, ERR_ERRONEUSNICKNAME} and
not self.registered):
if self._alt_nicks:
nick = self._alt_nicks.pop(0)