mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
MessageParser: Prevent duplicated response if supybot.databases.plugins.channelspecific is enabled.
This commit is contained in:
parent
48b03a8f46
commit
cb48f667ae
@ -158,7 +158,7 @@ class MessageParser(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
return
|
return
|
||||||
actions = []
|
actions = []
|
||||||
results = []
|
results = []
|
||||||
for channel in (channel, 'global'):
|
for channel in map(plugins.getChannel, (channel, 'global')):
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
cursor.execute("SELECT regexp, action FROM triggers")
|
cursor.execute("SELECT regexp, action FROM triggers")
|
||||||
|
Loading…
Reference in New Issue
Block a user