3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-28 05:29:25 +01:00

IRCS2SProtocol: skip implicit message sender fetching if the first arg starts with a :

This commit is contained in:
James Lu 2017-07-02 22:44:57 -07:00
parent 640e903dd6
commit c9272c25ce

View File

@ -201,7 +201,7 @@ class IRCS2SProtocol(IRCCommonProtocol):
elif sender_uid in self.users: elif sender_uid in self.users:
# Sender is a user (converting from name to UID gave a valid result). # Sender is a user (converting from name to UID gave a valid result).
sender = sender_uid sender = sender_uid
else: elif not (args[0].startswith(':')):
# No sender prefix; treat as coming from uplink IRCd. # No sender prefix; treat as coming from uplink IRCd.
sender = self.uplink sender = self.uplink
args.insert(0, sender) args.insert(0, sender)