mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09: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
|
# 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'])
|
||||||
|
Loading…
Reference in New Issue
Block a user