From be960bf27be941f225c466c98a6db2dfdb522d12 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 31 Aug 2016 22:46:19 -0700 Subject: [PATCH] clientbot: handle numerics 463 to 465 as fatal error --- protocols/clientbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 6457c3e..9e4a815 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -35,6 +35,10 @@ class ClientbotWrapperProtocol(Protocol): # things like failed KICK attempts from desyncing plugins like relay. self.kick_queue = {} + # Aliases: 463 (ERR_NOPERMFORHOST), 464 (ERR_PASSWDMISMATCH), and 465 (ERR_YOUREBANNEDCREEP) + # are essentially all fatal errors for connections. + self.handle_463 = self.handle_464 = self.handle_465 = self.handle_error + def _expandPUID(self, uid): """ Returns the real nick for the given PUID.