mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 12:43:09 +01:00
Fixed contributors test failure.
This commit is contained in:
parent
9d0fa5e3ff
commit
8436a7e590
10
src/Misc.py
10
src/Misc.py
@ -51,9 +51,9 @@ import supybot.log as log
|
|||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
|
from supybot.commands import *
|
||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
import supybot.irclib as irclib
|
import supybot.irclib as irclib
|
||||||
from supybot.commands import additional, getopts, optional, wrap
|
|
||||||
import supybot.ircmsgs as ircmsgs
|
import supybot.ircmsgs as ircmsgs
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.webutils as webutils
|
import supybot.webutils as webutils
|
||||||
@ -262,7 +262,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
if not nick:
|
if not nick:
|
||||||
nick = msg.nick
|
nick = msg.nick
|
||||||
irc.reply(irc.state.nickToHostmask(nick))
|
irc.reply(irc.state.nickToHostmask(nick))
|
||||||
hostmask = wrap(hostmask, [optional('seenNick')])
|
hostmask = wrap(hostmask, [additional('seenNick')])
|
||||||
|
|
||||||
def version(self, irc, msg, args):
|
def version(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
@ -441,7 +441,7 @@ class Misc(callbacks.Privmsg):
|
|||||||
irc.error('You haven\'t asked me a command!')
|
irc.error('You haven\'t asked me a command!')
|
||||||
except IndexError:
|
except IndexError:
|
||||||
irc.error('That\'s all, there is no more.')
|
irc.error('That\'s all, there is no more.')
|
||||||
more = wrap(more, [optional('seenNick')])
|
more = wrap(more, [additional('seenNick')])
|
||||||
|
|
||||||
def _validLastMsg(self, msg):
|
def _validLastMsg(self, msg):
|
||||||
return msg.prefix and \
|
return msg.prefix and \
|
||||||
@ -600,7 +600,6 @@ class Misc(callbacks.Privmsg):
|
|||||||
be listed. Note: The <nick> is the part inside of the parentheses
|
be listed. Note: The <nick> is the part inside of the parentheses
|
||||||
in the people listing.
|
in the people listing.
|
||||||
"""
|
"""
|
||||||
nick = ircutils.toLower(nick)
|
|
||||||
def getShortName(authorInfo):
|
def getShortName(authorInfo):
|
||||||
"""
|
"""
|
||||||
Take an Authors object, and return only the name and nick values
|
Take an Authors object, and return only the name and nick values
|
||||||
@ -701,8 +700,9 @@ class Misc(callbacks.Privmsg):
|
|||||||
if not nick:
|
if not nick:
|
||||||
irc.reply(buildPeopleString(module))
|
irc.reply(buildPeopleString(module))
|
||||||
else:
|
else:
|
||||||
|
nick = ircutils.toLower(nick)
|
||||||
irc.reply(buildPersonString(module))
|
irc.reply(buildPersonString(module))
|
||||||
contributors = wrap(contributors, ['plugin', optional('nick')])
|
contributors = wrap(contributors, ['plugin', additional('nick')])
|
||||||
|
|
||||||
Class = Misc
|
Class = Misc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user