Config: Fix name clash with the expected 'reset' method.

This commit is contained in:
Valentin Lorentz 2020-05-17 12:46:46 +02:00
parent e9a8826805
commit 75f7479bf4

View File

@ -474,7 +474,12 @@ class Config(callbacks.Plugin):
irc.replySuccess()
setdefault = wrap(setdefault, ['settableConfigVar'])
class reset(callbacks.Commands):
class reset_(callbacks.Commands):
# to prevent conflict with the reset() command of callbacks, this class
# is renamed 'reset_'
def name(self):
return 'reset'
@internationalizeDocstring
def channel(self, irc, msg, args, network, channel, group):
"""[<network>] [<channel>] <name>