mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Factoids: Enforce order of approximate factoids.
This commit is contained in:
parent
0083b00b64
commit
65afe65ae6
@ -411,6 +411,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
||||
def _replyApproximateFactoids(self, irc, msg, channel, key, error=True):
|
||||
if self.registryValue('replyApproximateSearchKeys'):
|
||||
factoids = self._searchFactoid(channel, key)
|
||||
factoids.sort()
|
||||
if factoids:
|
||||
keylist = ["'%s'" % (fact,) for fact in factoids]
|
||||
keylist = ', '.join(keylist)
|
||||
|
Loading…
Reference in New Issue
Block a user