3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-29 14:12:39 +01:00

clientbot: handle numerics 463 to 465 as fatal error

This commit is contained in:
James Lu 2016-08-31 22:46:19 -07:00
parent cf5898fb45
commit be960bf27b

View File

@ -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.