diff --git a/src/Misc.py b/src/Misc.py index 936c191e8..c24c33a5f 100755 --- a/src/Misc.py +++ b/src/Misc.py @@ -239,7 +239,7 @@ class Misc(callbacks.Privmsg): return name = privmsgs.getArgs(args) cb = irc.getCallback(name) - if cb is not None and cb.__doc__ and not hasattr(cb, '_original'): + if cb is not None and cb.__doc__ and not getattr(cb,'_original',None): irc.reply(utils.normalizeWhitespace(cb.__doc__)) return command = callbacks.canonicalName(name)