MessageParser: Prevent duplicated response if supybot.databases.plugins.channelspecific is enabled.

This commit is contained in:
Valentin Lorentz 2013-02-22 18:40:38 +01:00
parent 48b03a8f46
commit cb48f667ae

View File

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