Correct the behavior of "karma"

This commit is contained in:
James Vega 2004-11-04 01:24:31 +00:00
parent bea58663f0
commit b8216a6bd5
1 changed files with 2 additions and 2 deletions

View File

@ -277,7 +277,7 @@ class Karma(callbacks.Privmsg):
self._doKarma(irc, channel, thing)
def karma(self, irc, msg, args, channel, things):
"""[<channel>] [<thing> [<thing> ...]]
"""[<channel>] [<thing> ...]
Returns the karma of <text>. If <thing> is not given, returns the top
three and bottom three karmas. If one <thing> is given, returns the
@ -333,7 +333,7 @@ class Karma(callbacks.Privmsg):
s = 'Highest karma: %s. Lowest karma: %s.%s' % \
(utils.commaAndify(highest), utils.commaAndify(lowest), rankS)
irc.reply(s)
karma = wrap(karma, ['channel', many('something')])
karma = wrap(karma, ['channel', any('something')])
_mostAbbrev = utils.abbrev(['increased', 'decreased', 'active'])
def most(self, irc, msg, args, channel, kind):