mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-28 22:41:05 -05:00
Added moduleof command.
This commit is contained in:
parent
2148a6e704
commit
f94c1a2260
@ -176,6 +176,18 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
"""
|
"""
|
||||||
irc.reply(msg, repr(conf.prefixChars))
|
irc.reply(msg, repr(conf.prefixChars))
|
||||||
|
|
||||||
|
def moduleof(self, irc, msg, args):
|
||||||
|
"""<command>
|
||||||
|
|
||||||
|
Returns the module <command> is in.
|
||||||
|
"""
|
||||||
|
command = privmsgs.getArgs(args)
|
||||||
|
method = irc.findCallback(command)
|
||||||
|
if method is not None:
|
||||||
|
irc.reply(msg, method.im_class.__name__)
|
||||||
|
else:
|
||||||
|
irc.error(msg, 'There is no such command %s' % command)
|
||||||
|
|
||||||
|
|
||||||
Class = MiscCommands
|
Class = MiscCommands
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user