From ce2852bdc0e1438d59f1e4cb2ab6f8377c24eff0 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 2 Jul 2017 22:09:22 -0700 Subject: [PATCH] clientbot: get rid of _get_SID in message parsing It isn't needed because any external server messages are sent raw. --- protocols/clientbot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 9fcc66b..6f761a5 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -411,9 +411,9 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): # pseudo-uids and pseudo-sids as we see prefixes. if ('!' not in sender) and '.' in sender: # Sender is a server name. XXX: make this check more foolproof - idsource = self._get_SID(sender) - if idsource not in self.servers: - idsource = self.spawn_server(sender, internal=False) + if sender not in self.servers: + self.spawn_server(sender, internal=False) + idsource = sender else: # Sender is a either a nick or a nick!user@host prefix. Split it into its relevant parts. try: