core: Add docstring to commands.wrap.

This commit is contained in:
Valentin Lorentz 2013-02-01 20:38:18 +01:00
parent 39b534246f
commit 75f19a9f50

View File

@ -1039,6 +1039,13 @@ def wrap(f, specList=[], name=None, **kw):
'function ;)') 'function ;)')
raise raise
return utils.python.changeFunctionName(newf, name, f.__doc__) return utils.python.changeFunctionName(newf, name, f.__doc__)
wrap.__doc__ = """Useful wrapper for plugin commands.
Valid converters are: %s.
:param f: A command, taking (self, irc, msg, args, ...) as arguments
:param specList: A list of converters and contexts""" % \
', '.join(sorted(wrappers.keys()))
__all__ = [ __all__ = [
# Contexts. # Contexts.