Forgot to guard morehelp command against None __doc__s.

This commit is contained in:
Jeremy Fincher 2003-08-22 07:00:07 +00:00
parent c413261a3b
commit 94e25c6c17

View File

@ -117,7 +117,7 @@ class MiscCommands(callbacks.Privmsg):
cb = irc.findCallback(command)
if cb:
method = getattr(cb, command)
if hasattr(method, '__doc__'):
if hasattr(method, '__doc__') and method.__doc__ is not None:
doclines = method.__doc__.splitlines()
simplehelp = doclines.pop(0)
if doclines: