mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-08 03:59:23 +01:00
Config: Fix crash when reseting registry.Pattern
This commit is contained in:
parent
baa8cda814
commit
f1824fc7db
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user