mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Fixed moduleof command.
This commit is contained in:
parent
a5e7a1980c
commit
d53a1842df
@ -182,9 +182,9 @@ class MiscCommands(callbacks.Privmsg):
|
||||
Returns the module <command> is in.
|
||||
"""
|
||||
command = privmsgs.getArgs(args)
|
||||
method = irc.findCallback(command)
|
||||
Class = irc.findCallback(command)
|
||||
if method is not None:
|
||||
irc.reply(msg, method.im_class.__name__)
|
||||
irc.reply(msg, Class.__name__)
|
||||
else:
|
||||
irc.error(msg, 'There is no such command %s' % command)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user