diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 1c06368..2f0633f 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -147,6 +147,9 @@ class IRCS2SProtocol(IRCCommonProtocol): self.protocol_caps = {'can-spawn-clients', 'has-ts', 'can-host-relay', 'can-track-servers'} + # Alias + self.handle_squit = self._squit + def handle_events(self, data): """Event handler for RFC1459-like protocols. @@ -353,10 +356,6 @@ class IRCS2SProtocol(IRCCommonProtocol): self._remove_client(numeric) return {'text': args[0]} - def handle_squit(self, numeric, command, args): - """Handles incoming SQUITs.""" - return self._squit(numeric, command, args) - def handle_time(self, numeric, command, args): """Handles incoming /TIME requests.""" return {'target': args[0]} diff --git a/protocols/unreal.py b/protocols/unreal.py index 219fb87..1b11ed3 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -506,15 +506,6 @@ class UnrealProtocol(TS6BaseProtocol): sdesc = args[-1] self.servers[sid] = Server(numeric, sname, desc=sdesc) return {'name': sname, 'sid': sid, 'text': sdesc} - - def handle_squit(self, numeric, command, args): - """Handles the SQUIT command.""" - # <- SQUIT services.int :Read error - # Convert the server name to a SID... - args[0] = self._get_SID(args[0]) - # Then, use the SQUIT handler in TS6BaseProtocol as usual. - return super().handle_squit(numeric, 'SQUIT', args) - def handle_protoctl(self, numeric, command, args): """Handles protocol negotiation."""