diff --git a/plugins/MessageParser/plugin.py b/plugins/MessageParser/plugin.py index e703676a1..f746d6b6c 100644 --- a/plugins/MessageParser/plugin.py +++ b/plugins/MessageParser/plugin.py @@ -158,7 +158,7 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler): return actions = [] results = [] - for channel in (channel, 'global'): + for channel in map(plugins.getChannel, (channel, 'global')): db = self.getDb(channel) cursor = db.cursor() cursor.execute("SELECT regexp, action FROM triggers")