3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-02 15:59:26 +01:00

clientbot: get rid of _get_SID in message parsing

It isn't needed because any external server messages are sent raw.
This commit is contained in:
James Lu 2017-07-02 22:09:22 -07:00
parent 62669c085d
commit ce2852bdc0

View File

@ -411,9 +411,9 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
# pseudo-uids and pseudo-sids as we see prefixes. # pseudo-uids and pseudo-sids as we see prefixes.
if ('!' not in sender) and '.' in sender: if ('!' not in sender) and '.' in sender:
# Sender is a server name. XXX: make this check more foolproof # Sender is a server name. XXX: make this check more foolproof
idsource = self._get_SID(sender) if sender not in self.servers:
if idsource not in self.servers: self.spawn_server(sender, internal=False)
idsource = self.spawn_server(sender, internal=False) idsource = sender
else: else:
# Sender is a either a nick or a nick!user@host prefix. Split it into its relevant parts. # Sender is a either a nick or a nick!user@host prefix. Split it into its relevant parts.
try: try: