aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-09-07 12:58:20 +0100
committerGravatar jesopo2019-09-07 12:58:20 +0100
commit1cadbc79ac856297ae18c7ec3efe6ac785ab7278 (patch)
tree39576afefeda41d9bdc53ee8fae8fc4736d0c64a /modules
parentShow the line that was actually send from !raw, after format and filter (diff)
signature
disregard empty JOIN channel params (e.g. "JOIN #bad,")
Diffstat (limited to 'modules')
-rw-r--r--modules/channel_blacklist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/channel_blacklist.py b/modules/channel_blacklist.py
index be9f9d97..d151bad8 100644
--- a/modules/channel_blacklist.py
+++ b/modules/channel_blacklist.py
@@ -12,7 +12,7 @@ class Module(ModuleManager.BaseModule):
changed = False
channels_out = []
- for channel_name in channels:
+ for channel_name in filter(None, channels):
id = event["server"].channels.get_id(channel_name, create=False)
if not id == None and self.bot.database.channel_settings.get(
id, "blacklist", False):