From 2aa00d6efc93c310ab6bf3916cdf1055c5fbf725 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 15 Aug 2020 23:23:29 -0700 Subject: [PATCH] relay: skip messages from clientbot networks when relay_clientbot isn't loaded --- plugins/relay.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index 58acf98..fa3de4c 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -1515,6 +1515,9 @@ def handle_messages(irc, numeric, command, args): log.debug('(%s) relay.handle_messages: dropping PM from server %s to %s', irc.name, numeric, target) 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) remoteusers = relayusers[(irc.name, numeric)]