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
1 changed files with 2 additions and 2 deletions

View File

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