diff --git a/plugins/WordStats.py b/plugins/WordStats.py index 8b038504d..f6f830bed 100644 --- a/plugins/WordStats.py +++ b/plugins/WordStats.py @@ -279,6 +279,7 @@ class WordStats(callbacks.Privmsg): try: L = ['%r: %s' % (word, count) for (word,count) in self.db.getUserWordCounts(channel,id)] + L.sort() irc.reply(utils.commaAndify(L)) except KeyError: irc.reply('I have no word stats for that person.') diff --git a/test/test_WordStats.py b/test/test_WordStats.py index a5c2485c4..5650227bf 100644 --- a/test/test_WordStats.py +++ b/test/test_WordStats.py @@ -55,8 +55,8 @@ if sqlite is not None: self.assertResponse('wordstats', 'I am not currently keeping any ' 'word stats.') self.assertNotError('add lol') - self.assertResponse('wordstats', 'Currently keeping stats for: ' - '\'lol\'') + self.assertResponse('wordstats', + 'I am currently keeping stats for lol.') def testWordStatsUser(self): self.assertNotError('add lol')