mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 04:32:51 +01:00
Config: Exclude network pseudo-vars from @search.
This commit is contained in:
parent
e990ffa30c
commit
b07376d16f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user