diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index b36e878..eb2e9b9 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -373,6 +373,13 @@ class IRCS2SProtocol(IRCCommonProtocol): # handle_part() does that just fine. self.handle_part(target, 'KICK', [channel]) + def numeric(self, source, numeric, target, text): + """Sends raw numerics from a server to a remote client. This is used for WHOIS replies.""" + # Mangle the target for IRCds that require it. + target = self._expandPUID(target) + + self._send_with_prefix(source, '%s %s %s' % (numeric, target, text)) + def part(self, client, channel, reason=None): """Sends a part from a PyLink client.""" channel = self.to_lower(channel) diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index 590bbd9..4a34d6f 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -110,14 +110,6 @@ class TS6BaseProtocol(IRCS2SProtocol): ### OUTGOING COMMANDS - def numeric(self, source, numeric, target, text): - """Sends raw numerics from a server to a remote client, used for WHOIS - replies.""" - # Mangle the target for IRCds that require it. - target = self._expandPUID(target) - - self._send_with_prefix(source, '%s %s %s' % (numeric, target, text)) - def kill(self, numeric, target, reason): """Sends a kill from a PyLink client/server."""