From b07376d16f1ed8f084bfd7f58c18887eb0c64415 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 8 May 2020 20:16:43 +0200 Subject: [PATCH] Config: Exclude network pseudo-vars from @search. --- plugins/Config/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Config/plugin.py b/plugins/Config/plugin.py index 5919e59b3..68d81db19 100644 --- a/plugins/Config/plugin.py +++ b/plugins/Config/plugin.py @@ -196,8 +196,9 @@ class Config(callbacks.Plugin): L = [] for (name, x) in conf.supybot.getValues(getChildren=True): if word in name.lower(): - possibleChannel = registry.split(name)[-1] - if not irc.isChannel(possibleChannel): + last_name_part = registry.split(name)[-1] + if not irc.isChannel(last_name_part) \ + and not last_name_part.startswith(':'): # network L.append(name) if L: irc.reply(format('%L', L))