mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-29 14:19:25 +01:00
Config: Fix name clash with the expected 'reset' method.
This commit is contained in:
parent
e9a8826805
commit
75f7479bf4
@ -474,7 +474,12 @@ class Config(callbacks.Plugin):
|
|||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
setdefault = wrap(setdefault, ['settableConfigVar'])
|
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
|
@internationalizeDocstring
|
||||||
def channel(self, irc, msg, args, network, channel, group):
|
def channel(self, irc, msg, args, network, channel, group):
|
||||||
"""[<network>] [<channel>] <name>
|
"""[<network>] [<channel>] <name>
|
||||||
|
Loading…
Reference in New Issue
Block a user