diff --git a/plugins/Factoids/plugin.py b/plugins/Factoids/plugin.py index b932747b4..a592ad42f 100644 --- a/plugins/Factoids/plugin.py +++ b/plugins/Factoids/plugin.py @@ -310,7 +310,7 @@ class Factoids(callbacks.Plugin, plugins.ChannelDBHandler): else: irc.error("This key-factoid relationship already exists.") - learn = wrap(learn, ['factoid']) + learn = wrap(learn, ['factoid'], checkDoc=False) learn._fake__doc__ = _("""[] %s Associates with . is only diff --git a/src/commands.py b/src/commands.py index 0886f5857..d0924fbb7 100644 --- a/src/commands.py +++ b/src/commands.py @@ -1038,9 +1038,9 @@ class Spec(object): raise callbacks.ArgumentError return state -def _wrap(f, specList=[], name=None, **kw): +def _wrap(f, specList=[], name=None, checkDoc=True, **kw): name = name or f.func_name - assert hasattr(f, '__doc__') and f.__doc__, \ + assert (not checkDoc) or (hasattr(f, '__doc__') and f.__doc__), \ 'Command %r has no docstring.' % name f = internationalizeDocstring(f) spec = Spec(specList, **kw)