From 5c0596f48462764ea1a68efb6899a2ceb226c2c9 Mon Sep 17 00:00:00 2001 From: nanotube Date: Tue, 23 Mar 2010 13:34:50 -0400 Subject: [PATCH] rename factrank to just rank for consistency --- plugins/Factoids/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index 2e4c7cd50..63a532429 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -270,7 +270,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): whatis = wrap(whatis, ['channel', many('something')]) @internationalizeDocstring - def factrank(self, irc, msg, args, channel): + def rank(self, irc, msg, args, channel): """[] Returns a list of top-ranked factoid keys, sorted by usage count @@ -289,7 +289,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): factkeys = cursor.fetchall() s = [ "#%d %s (%d)" % (i+1, key[0], key[1]) for i, key in enumerate(factkeys) ] irc.reply(", ".join(s)) - factrank = wrap(factrank, ['channel']) + rank = wrap(rank, ['channel']) @internationalizeDocstring def lock(self, irc, msg, args, channel, key):