mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Added hostmask command.
This commit is contained in:
parent
92369c6fde
commit
2e82a85e40
@ -213,6 +213,17 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
bug = privmsgs.thread(bug)
|
bug = privmsgs.thread(bug)
|
||||||
|
|
||||||
|
def hostmask(self, irc, msg, args):
|
||||||
|
"""<nick>
|
||||||
|
|
||||||
|
Returns the hostmask of <nick>.
|
||||||
|
"""
|
||||||
|
nick = privmsgs.getArgs(args)
|
||||||
|
try:
|
||||||
|
irc.reply(msg, irc.state.nickToHostmask(nick))
|
||||||
|
except KeyError:
|
||||||
|
irc.error(msg, 'I haven\'t seen anyone named %r' % nick)
|
||||||
|
|
||||||
def version(self, irc, msg, args):
|
def version(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user