Commits

Stephen Tanner committed 8725b4e

Fixed output formatting

Comments (0)

Files changed (2)

 
     def getAdmins(self):
         self.curs.execute('SELECT nick from admin')
-        return self.curs.fetchall()
+
+        return [x[0] for x in self.curs.fetchall()]
 
     def getOwner(self):
         return self.OWNER
     def __getUsers(self, message):
         '''PM user a list of people who have voted or have karma'''
         self.curs.execute('SELECT uname from vote')
-        names = self.curs.fetchall()
+        names = [x[0] for x in self.curs.fetchall()]
         self.SERVER.sendPRIVMessage(message.nick + " :" +
                                     "Known users: " + str(names))
 
     def __getWords(self, message):
         '''PM user a list of words with karma'''
         self.curs.execute('SELECT word FROM vote2')
-        words = self.curs.fetchall()
+        words = [x[0] for x in self.curs.fetchall()]
         self.SERVER.sendPRIVMessage(message.nick + " :" +
                                     "Known words: " + str(words))
 
             cmds = list(self.ownerCommands.keys())
             cmds.extend(list(self.adminCommands.keys()))
             cmds.extend(list(self.anonCommands.keys()))
+            #cmds = [x[0] for x in cmds]
             helpstr = ['Karma Help Commands: ' + str(cmds).replace(':', ''),
                        '  ,nuke_karma - ' + self.__nukeKarma.__doc__,
                        '  ,nuke_words - ' + self.__nukeWords.__doc__,