mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
rename factrank to just rank for consistency
This commit is contained in:
parent
69c7774431
commit
0fb4dd6dff
@ -266,7 +266,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
self._replyFactoids(irc, msg, key, channel, factoids, number)
|
self._replyFactoids(irc, msg, key, channel, factoids, number)
|
||||||
whatis = wrap(whatis, ['channel', many('something')])
|
whatis = wrap(whatis, ['channel', many('something')])
|
||||||
|
|
||||||
def factrank(self, irc, msg, args, channel):
|
def rank(self, irc, msg, args, channel):
|
||||||
"""[<channel>]
|
"""[<channel>]
|
||||||
|
|
||||||
Returns a list of top-ranked factoid keys, sorted by usage count
|
Returns a list of top-ranked factoid keys, sorted by usage count
|
||||||
@ -285,7 +285,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler):
|
|||||||
factkeys = cursor.fetchall()
|
factkeys = cursor.fetchall()
|
||||||
s = [ "#%d %s (%d)" % (i+1, key[0], key[1]) for i, key in enumerate(factkeys) ]
|
s = [ "#%d %s (%d)" % (i+1, key[0], key[1]) for i, key in enumerate(factkeys) ]
|
||||||
irc.reply(", ".join(s))
|
irc.reply(", ".join(s))
|
||||||
factrank = wrap(factrank, ['channel'])
|
rank = wrap(rank, ['channel'])
|
||||||
|
|
||||||
def lock(self, irc, msg, args, channel, key):
|
def lock(self, irc, msg, args, channel, key):
|
||||||
"""[<channel>] <key>
|
"""[<channel>] <key>
|
||||||
|
Loading…
Reference in New Issue
Block a user