diff --git a/plugins/Notes.py b/plugins/Notes.py index 7ac31da84..8eb30b810 100644 --- a/plugins/Notes.py +++ b/plugins/Notes.py @@ -196,7 +196,7 @@ class Notes(callbacks.Privmsg): self.cursor.execute("""SELECT id, from_id, public, read FROM notes WHERE to_id=%s AND read=0""", senderID) - count = cursor.rowcount + count = self.cursor.rowcount notes = self.cursor.fetchall() L = [] if count == 0: