mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
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
Block a user