From 94e25c6c172e3cc606b02ec2cddd5b31a70322c6 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 22 Aug 2003 07:00:07 +0000 Subject: [PATCH] Forgot to guard morehelp command against None __doc__s. --- src/MiscCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MiscCommands.py b/src/MiscCommands.py index bd648dac0..ef70b2814 100755 --- a/src/MiscCommands.py +++ b/src/MiscCommands.py @@ -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: