Commits

Stephen Tanner  committed a9f865e

Minor bugfixes

  • Participants
  • Parent commits 918684d

Comments (0)

Files changed (1)

File src/Karma.py

         '''Reset the karma score of a given user back to 0's'''
         if len(message.message) > 1:
             self.curs.execute('SELECT * FROM vote WHERE uname =?',
-                              message.message[1])
+                              [message.message[1]])
         if len(self.curs.fetchall()) == 1 :
             self.curs.execute('DELETE FROM vote WHERE uname = ?',
-                              message.message[1])
-            self.__newUser(nick)
+                              [message.message[1]])
+            self.__newUser(message.message[1])
         else:
             pass
 
         '''Delete a word from the db'''
         if len(message.message) > 1:
             self.curs.execute('DELETE FROM vote2 WHERE word = ?',
-                              message.message[1])
+                              [message.message[1]])
 
 
     def help(self, message):