From c3f2bfdfc9e10d74219d180728425dd9850cea44 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 22 Feb 2013 19:22:23 +0100 Subject: [PATCH] Fix previous commit. Thanks to Nothing4You. --- plugins/MessageParser/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")