mirror of https://github.com/Mikaela/Limnoria.git
Added @reset command per request issue #163
This commit is contained in:
parent
992de0962b
commit
0cd7bd857a
|
@ -284,6 +284,15 @@ class Config(callbacks.Plugin):
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
export = wrap(export, [('checkCapability', 'owner'), 'filename'])
|
export = wrap(export, [('checkCapability', 'owner'), 'filename'])
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
|
def reset(self, irc, msg, args, group):
|
||||||
|
"""<name>
|
||||||
|
|
||||||
|
Resets the configuration variable <name> to its default value.
|
||||||
|
"""
|
||||||
|
v = str(group.__class__(group._default, ''))
|
||||||
|
self._setValue(irc, msg, group, v)
|
||||||
|
reset = wrap(reset, ['settableConfigVar'])
|
||||||
|
|
||||||
Class = Config
|
Class = Config
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue