diff --git a/protocols/inspircd.py b/protocols/inspircd.py index a2e6a19..83a0fbe 100644 --- a/protocols/inspircd.py +++ b/protocols/inspircd.py @@ -376,12 +376,6 @@ class InspIRCdProtocol(TS6BaseProtocol): self._send_with_prefix(sid, 'ENDBURST') return sid - def squit(self, source, target, text='No reason given'): - """SQUITs a PyLink server.""" - # -> :9PY SQUIT 9PZ :blah, blah - self._send_with_prefix(source, 'SQUIT %s :%s' % (target, text)) - self.handle_squit(source, 'SQUIT', [target, text]) - ### Core / command handlers def post_connect(self): diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 488c18d..af72335 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -394,6 +394,13 @@ class IRCS2SProtocol(IRCCommonProtocol): self._send_with_prefix(numeric, 'NOTICE %s :%s' % (target, text)) + def squit(self, source, target, text='No reason given'): + """SQUITs a PyLink server.""" + # -> SQUIT 9PZ :blah, blah + log.debug('(%s) squit: source=%s, target=%s', self.name, source, target) + self._send_with_prefix(source, 'SQUIT %s :%s' % (target, text)) + self.handle_squit(source, 'SQUIT', [target, text]) + def topic(self, numeric, target, text): """Sends a TOPIC change from a PyLink client.""" if not self.is_internal_client(numeric): diff --git a/protocols/ts6_common.py b/protocols/ts6_common.py index 5b4c395..03aabba 100644 --- a/protocols/ts6_common.py +++ b/protocols/ts6_common.py @@ -214,13 +214,6 @@ class TS6BaseProtocol(IRCS2SProtocol): self.servers[sid] = Server(uplink, name, internal=True, desc=desc) return sid - def squit(self, source, target, text='No reason given'): - """SQUITs a PyLink server.""" - # -> SQUIT 9PZ :blah, blah - log.debug('source=%s, target=%s', source, target) - self._send_with_prefix(source, 'SQUIT %s :%s' % (target, text)) - self.handle_squit(source, 'SQUIT', [target, text]) - def away(self, source, text): """Sends an AWAY message from a PyLink client. can be an empty string to unset AWAY status."""