diff --git a/src/MiscCommands.py b/src/MiscCommands.py index 58d6b48a0..42828fddc 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -176,6 +176,18 @@ class MiscCommands(callbacks.Privmsg): """ irc.reply(msg, repr(conf.prefixChars)) + def moduleof(self, irc, msg, args): + """ + + Returns the module 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