mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Merge pull request #427 from Erika-Mustermann/testing
Added @reset command per request issue #163
This commit is contained in:
commit
4552eba9b3
@ -284,6 +284,15 @@ class Config(callbacks.Plugin):
|
||||
irc.replySuccess()
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user