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 = []
|
L = []
|
||||||
for (name, x) in conf.supybot.getValues(getChildren=True):
|
for (name, x) in conf.supybot.getValues(getChildren=True):
|
||||||
if word in name.lower():
|
if word in name.lower():
|
||||||
possibleChannel = registry.split(name)[-1]
|
last_name_part = registry.split(name)[-1]
|
||||||
if not irc.isChannel(possibleChannel):
|
if not irc.isChannel(last_name_part) \
|
||||||
|
and not last_name_part.startswith(':'): # network
|
||||||
L.append(name)
|
L.append(name)
|
||||||
if L:
|
if L:
|
||||||
irc.reply(format('%L', L))
|
irc.reply(format('%L', L))
|
||||||
|
Loading…
Reference in New Issue
Block a user