mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-10-04 18:38:39 +02:00
Factoids: Pass channel to whatis when being called from search
Thanks to Daniel Folkinshteyn for the fix.
Closes: Sf#2965589
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
(cherry picked from commit 209facd242
)
This commit is contained in:
parent
fa199022e1
commit
b2c45caa66
@ -417,7 +417,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
irc.reply('No keys matched that query.')
|
irc.reply('No keys matched that query.')
|
||||||
elif cursor.rowcount == 1 and \
|
elif cursor.rowcount == 1 and \
|
||||||
self.registryValue('showFactoidIfOnlyOneMatch', channel):
|
self.registryValue('showFactoidIfOnlyOneMatch', channel):
|
||||||
self.whatis(irc, msg, [cursor.fetchone()[0]])
|
self.whatis(irc, msg, channel, [cursor.fetchone()[0]])
|
||||||
elif cursor.rowcount > 100:
|
elif cursor.rowcount > 100:
|
||||||
irc.reply('More than 100 keys matched that query; '
|
irc.reply('More than 100 keys matched that query; '
|
||||||
'please narrow your query.')
|
'please narrow your query.')
|
||||||
|
Loading…
Reference in New Issue
Block a user