mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
* Config: Don't use a prefix in _setValue -- deviated from normal '' line enclosure to allow use of ' in lines without escaping * fix up edits per @Mikaela
This commit is contained in:
parent
e08e899134
commit
71ed64e6b2
@ -213,9 +213,9 @@ class Config(callbacks.Plugin):
|
|||||||
|
|
||||||
def _setValue(self, irc, msg, group, value):
|
def _setValue(self, irc, msg, group, value):
|
||||||
if isReadOnly(group._name):
|
if isReadOnly(group._name):
|
||||||
irc.error(_('This configuration variable is not writeable '
|
irc.error(_("This configuration variable is not writeable "
|
||||||
'via IRC. To change it you have to: 1) use @flush 2) edit '
|
"via IRC. To change it you have to: 1) use the 'flush' command 2) edit "
|
||||||
'the config file 3) use @config reload.'), Raise=True)
|
"the config file 3) use the 'config reload' command."), Raise=True)
|
||||||
capability = getCapability(group._name)
|
capability = getCapability(group._name)
|
||||||
if ircdb.checkCapability(msg.prefix, capability):
|
if ircdb.checkCapability(msg.prefix, capability):
|
||||||
# I think callCommand catches exceptions here. Should it?
|
# I think callCommand catches exceptions here. Should it?
|
||||||
|
Loading…
Reference in New Issue
Block a user