Fix previous commit. Thanks to Nothing4You.

This commit is contained in:
Valentin Lorentz 2013-02-22 19:22:23 +01:00
parent cb48f667ae
commit c3f2bfdfc9

View File

@ -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")