From e5e1f2e84ed5f67636519bbd375b9a11f21144aa Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 2 Jul 2004 14:08:19 +0000 Subject: [PATCH] Bugfix. I can't test this on my laptop, so expect a couple more of these. --- plugins/Factoids.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Factoids.py b/plugins/Factoids.py index 9c96e8e40..e1d9dffa4 100644 --- a/plugins/Factoids.py +++ b/plugins/Factoids.py @@ -165,7 +165,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg): LIMIT 20""", key) return [t[0] for t in cursor.fetchall()] - def _replyFactoids(self, irc, key, factoids, number=0, error=True): + def _replyFactoids(self, irc, channel, key, factoids, number=0, error=True): if factoids: if number: try: @@ -195,7 +195,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg): if self.registryValue('replyWhenInvalidCommand', channel): key = ' '.join(tokens) factoids = self._lookupFactoid(channel, key) - self._replyFactoids(irc, key, factoids, error=False) + self._replyFactoids(irc, channel, key, factoids, error=False) def whatis(self, irc, msg, args): """[] [] @@ -219,7 +219,7 @@ class Factoids(plugins.ChannelDBHandler, callbacks.Privmsg): else: number = 0 factoids = self._lookupFactoid(channel, key) - self._replyFactoids(irc, key, factoids, number) + self._replyFactoids(irc, channel, key, factoids, number) def lock(self, irc, msg, args): """[]