mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Minor changes.
This commit is contained in:
parent
9a79c6b0ee
commit
6f7a33ce5c
@ -86,7 +86,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()
|
||||||
help = doclines.pop(0)
|
help = doclines.pop(0)
|
||||||
if doclines:
|
if doclines:
|
||||||
@ -106,7 +106,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
irc.error(msg, 'That callback has no help.')
|
irc.error(msg, 'That callback has no help.')
|
||||||
else:
|
else:
|
||||||
irc.error(msg, 'There is no such command')
|
irc.error(msg, 'There is no such command.')
|
||||||
|
|
||||||
def morehelp(self, irc, msg, args):
|
def morehelp(self, irc, msg, args):
|
||||||
"""<command>
|
"""<command>
|
||||||
@ -155,7 +155,7 @@ class MiscCommands(callbacks.Privmsg):
|
|||||||
|
|
||||||
Returns a URL saying where to get SupyBot.
|
Returns a URL saying where to get SupyBot.
|
||||||
"""
|
"""
|
||||||
irc.reply(msg, 'http://www.sf.net/projects/supybot/')
|
irc.reply(msg, 'My source is at http://www.sf.net/projects/supybot/')
|
||||||
|
|
||||||
def logfilesize(self, irc, msg, args):
|
def logfilesize(self, irc, msg, args):
|
||||||
"""takes no arguments
|
"""takes no arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user