mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 06:30:57 +01:00
Relay: Don't relay QUIT/NICK if the sender isn't in the relayed channel.
This commit is contained in:
parent
ca369afe59
commit
e3fce56800
@ -399,6 +399,8 @@ class Relay(callbacks.Plugin):
|
|||||||
network = self._getIrcName(irc)
|
network = self._getIrcName(irc)
|
||||||
s = format(_('nick change by %s to %s on %s'), msg.nick,newNick,network)
|
s = format(_('nick change by %s to %s on %s'), msg.nick,newNick,network)
|
||||||
for channel in self.registryValue('channels'):
|
for channel in self.registryValue('channels'):
|
||||||
|
if channel not in msg.tagged('channels'):
|
||||||
|
continue
|
||||||
m = self._msgmaker(channel, network, s)
|
m = self._msgmaker(channel, network, s)
|
||||||
self._sendToOthers(irc, m, msg.nick)
|
self._sendToOthers(irc, m, msg.nick)
|
||||||
|
|
||||||
@ -438,6 +440,8 @@ class Relay(callbacks.Plugin):
|
|||||||
else:
|
else:
|
||||||
s = format(_('%s has quit %s.'), msg.nick, network)
|
s = format(_('%s has quit %s.'), msg.nick, network)
|
||||||
for channel in self.registryValue('channels'):
|
for channel in self.registryValue('channels'):
|
||||||
|
if channel not in msg.tagged('channels'):
|
||||||
|
continue
|
||||||
m = self._msgmaker(channel, network, s)
|
m = self._msgmaker(channel, network, s)
|
||||||
self._sendToOthers(irc, m, msg.nick)
|
self._sendToOthers(irc, m, msg.nick)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user