mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-24 19:14:09 +01:00
SedRegex: only operate on messages from the current network
Reported by @jztech101.
The 'receivedBy' tag is now checked to match the current IRC object, which Works around ProgVal/Limnoria#1211.
From: 84b94d589c
This commit is contained in:
parent
fa13c68ebc
commit
00f26b0a73
@ -116,7 +116,7 @@ class SedRegex(callbacks.PluginRegexp):
|
||||
next(iterable)
|
||||
for m in iterable:
|
||||
if m.command in ('PRIVMSG', 'NOTICE') and \
|
||||
m.args[0] == msg.args[0]:
|
||||
m.args[0] == msg.args[0] and m.tagged('receivedBy') == irc:
|
||||
target = regex.group('nick')
|
||||
if not ircutils.isNick(str(target), strictRfc=True):
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user