diff --git a/plugins/MessageParser/plugin.py b/plugins/MessageParser/plugin.py index f746d6b6c..83a51d4ee 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 map(plugins.getChannel, (channel, 'global')): + for channel in set(map(plugins.getChannel, (channel, 'global'))): db = self.getDb(channel) cursor = db.cursor() cursor.execute("SELECT regexp, action FROM triggers")