mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-20 07:30:54 +01:00
Forgot to guard morehelp command against None __doc__s.
This commit is contained in:
parent
c413261a3b
commit
94e25c6c17
@ -117,7 +117,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
cb = irc.findCallback(command)
|
cb = irc.findCallback(command)
|
||||||
if cb:
|
if cb:
|
||||||
method = getattr(cb, command)
|
method = getattr(cb, command)
|
||||||
if hasattr(method, '__doc__'):
|
if hasattr(method, '__doc__') and method.__doc__ is not None:
|
||||||
doclines = method.__doc__.splitlines()
|
doclines = method.__doc__.splitlines()
|
||||||
simplehelp = doclines.pop(0)
|
simplehelp = doclines.pop(0)
|
||||||
if doclines:
|
if doclines:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user