From e25f6fd4706e07d682ff9103f2d2c6511847cc68 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 23 Sep 2017 23:15:29 -0700 Subject: [PATCH] ircs2s_common: expand PUIDs in squit() This fixes SQUIT not working correctly on ngIRCd. --- protocols/ircs2s_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/ircs2s_common.py b/protocols/ircs2s_common.py index 580c777..309073b 100644 --- a/protocols/ircs2s_common.py +++ b/protocols/ircs2s_common.py @@ -480,7 +480,7 @@ class IRCS2SProtocol(IRCCommonProtocol): """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._send_with_prefix(source, 'SQUIT %s :%s' % (self._expandPUID(target), text)) self.handle_squit(source, 'SQUIT', [target, text]) def topic(self, source, target, text):