mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-25 12:19:24 +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)
|
||||
s = format(_('nick change by %s to %s on %s'), msg.nick,newNick,network)
|
||||
for channel in self.registryValue('channels'):
|
||||
if channel not in msg.tagged('channels'):
|
||||
continue
|
||||
m = self._msgmaker(channel, network, s)
|
||||
self._sendToOthers(irc, m, msg.nick)
|
||||
|
||||
@ -438,6 +440,8 @@ class Relay(callbacks.Plugin):
|
||||
else:
|
||||
s = format(_('%s has quit %s.'), msg.nick, network)
|
||||
for channel in self.registryValue('channels'):
|
||||
if channel not in msg.tagged('channels'):
|
||||
continue
|
||||
m = self._msgmaker(channel, network, s)
|
||||
self._sendToOthers(irc, m, msg.nick)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user