Config: Fix crash when reseting registry.Pattern

This commit is contained in:
Valentin Lorentz 2021-12-03 17:28:05 +01:00
parent baa8cda814
commit f1824fc7db

View File

@ -504,7 +504,7 @@ class Config(callbacks.Plugin):
# reset group.#channel # reset group.#channel
changroup = group.get(channel) changroup = group.get(channel)
checkCanSetValue(irc, msg, changroup) checkCanSetValue(irc, msg, changroup)
changroup._setValue(group(), inherited=True) changroup._setValue(group.value, inherited=True)
irc.replySuccess() irc.replySuccess()
channel = wrap(channel, [ channel = wrap(channel, [
@ -523,7 +523,7 @@ class Config(callbacks.Plugin):
# reset group.#channel # reset group.#channel
changroup = group.get(':' + network.network) changroup = group.get(':' + network.network)
checkCanSetValue(irc, msg, changroup) checkCanSetValue(irc, msg, changroup)
changroup._setValue(group(), inherited=True) changroup._setValue(group.value, inherited=True)
irc.replySuccess() irc.replySuccess()
network = wrap(network, ['networkIrc', 'settableConfigVar']) network = wrap(network, ['networkIrc', 'settableConfigVar'])