mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
IRCS2SProtocol: skip implicit message sender fetching if the first arg starts with a :
This commit is contained in:
parent
640e903dd6
commit
c9272c25ce
@ -201,7 +201,7 @@ class IRCS2SProtocol(IRCCommonProtocol):
|
||||
elif sender_uid in self.users:
|
||||
# Sender is a user (converting from name to UID gave a valid result).
|
||||
sender = sender_uid
|
||||
else:
|
||||
elif not (args[0].startswith(':')):
|
||||
# No sender prefix; treat as coming from uplink IRCd.
|
||||
sender = self.uplink
|
||||
args.insert(0, sender)
|
||||
|
Loading…
Reference in New Issue
Block a user