From c2999561019e383da48f5fe6756b4307f9b87b93 Mon Sep 17 00:00:00 2001 From: Brett Kelly Date: Thu, 27 Mar 2003 06:31:32 +0000 Subject: [PATCH] Fixing little syntax errors --- plugins/Notes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/Notes.py b/plugins/Notes.py index 1d30f2567..d7af5f7d0 100644 --- a/plugins/Notes.py +++ b/plugins/Notes.py @@ -93,7 +93,7 @@ class Notes(DBHandler, callbacks.Privmsg): def getUserName(self, userid): self.cursor.execute("""SELECT name FROM users WHERE id=%d""" % userid) - if self.cursor.rowcount != 0 + if self.cursor.rowcount != 0: results = self.cursor.fetchall() return results[0] else: @@ -190,3 +190,5 @@ class Notes(DBHandler, callbacks.Privmsg): for (id, from_id) in notes: sender = self.getUserName(from_id) L.append(r'#%d from %s;;' % (id, sender) + +Class = Notes