Config: Don't use a prefix in _setValue (closes #1307) (#1308)

* 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:
Ken Spencer 2017-10-25 06:21:50 -04:00 committed by Valentin Lorentz
parent e08e899134
commit 71ed64e6b2

View File

@ -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?