diff --git a/plugins/Lookup.py b/plugins/Lookup.py index 9d8ac7dfa..586080742 100644 --- a/plugins/Lookup.py +++ b/plugins/Lookup.py @@ -159,7 +159,7 @@ class Lookup(callbacks.Privmsg): db = getDb() cursor = db.cursor() cursor.execute("""SELECT COUNT(*) FROM %s""" % name) - rows = cursor.fetchone()[0] + rows = int(cursor.fetchone()[0]) docstring = """[] If is given, looks up in the %s database. Otherwise,