Oops, forgot to change the name of the defined function.

This commit is contained in:
Jeremy Fincher 2004-01-05 18:00:29 +00:00
parent e8f3b6468c
commit ce93c286e2
1 changed files with 2 additions and 0 deletions

View File

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