diff options
| author | 2019-09-07 12:58:20 +0100 | |
|---|---|---|
| committer | 2019-09-07 12:58:20 +0100 | |
| commit | 1cadbc79ac856297ae18c7ec3efe6ac785ab7278 (patch) | |
| tree | 39576afefeda41d9bdc53ee8fae8fc4736d0c64a /modules | |
| parent | Show 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.py | 2 |
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): |
