mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: skip messages from clientbot networks when relay_clientbot isn't loaded
This commit is contained in:
parent
16a7cef1aa
commit
2aa00d6efc
@ -1515,6 +1515,9 @@ def handle_messages(irc, numeric, command, args):
|
|||||||
log.debug('(%s) relay.handle_messages: dropping PM from server %s to %s',
|
log.debug('(%s) relay.handle_messages: dropping PM from server %s to %s',
|
||||||
irc.name, numeric, target)
|
irc.name, numeric, target)
|
||||||
return
|
return
|
||||||
|
elif not irc.has_cap('can-spawn-clients') and not world.plugins.get('relay_clientbot'):
|
||||||
|
# For consistency, only read messages from clientbot networks if relay_clientbot is loaded
|
||||||
|
return
|
||||||
|
|
||||||
relay = get_relay(irc, target)
|
relay = get_relay(irc, target)
|
||||||
remoteusers = relayusers[(irc.name, numeric)]
|
remoteusers = relayusers[(irc.name, numeric)]
|
||||||
|
Loading…
Reference in New Issue
Block a user