Factoids: Enforce order of approximate factoids.

This commit is contained in:
Valentin Lorentz 2013-05-14 20:16:05 +02:00
parent 0083b00b64
commit 65afe65ae6

View File

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