diff --git a/src/MiscCommands.py b/src/MiscCommands.py index 4193dba24..f93fbcdbd 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -183,7 +183,7 @@ class MiscCommands(callbacks.Privmsg): """ command = privmsgs.getArgs(args) Class = irc.findCallback(command) - if method is not None: + if Class is not None: irc.reply(msg, Class.__name__) else: irc.error(msg, 'There is no such command %s' % command)