From ce93c286e21ae8b7dc7bb3c5c3c6dcf0bf87100f Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 5 Jan 2004 18:00:29 +0000 Subject: [PATCH] Oops, forgot to change the name of the defined function. --- plugins/Lookup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/Lookup.py b/plugins/Lookup.py index 98ab6868f..08d4b6377 100644 --- a/plugins/Lookup.py +++ b/plugins/Lookup.py @@ -185,6 +185,8 @@ class Lookup(callbacks.Privmsg): def f(self, irc, msg, args): args.insert(0, name) self._lookup(irc, msg, args) + f = types.FunctionType(f.func_code, f.func_globals, + name, closure=f.func_closure) db = self.dbHandler.getDb() cursor = db.cursor() cursor.execute("""SELECT COUNT(*) FROM %s""" % name)