From 71ed64e6b275ece9257e0804f0d2fe983c6a15e2 Mon Sep 17 00:00:00 2001 From: Ken Spencer Date: Wed, 25 Oct 2017 06:21:50 -0400 Subject: [PATCH] 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 --- plugins/Config/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/Config/plugin.py b/plugins/Config/plugin.py index aa4f46889..8276a5e3c 100644 --- a/plugins/Config/plugin.py +++ b/plugins/Config/plugin.py @@ -213,9 +213,9 @@ class Config(callbacks.Plugin): def _setValue(self, irc, msg, group, value): if isReadOnly(group._name): - irc.error(_('This configuration variable is not writeable ' - 'via IRC. To change it you have to: 1) use @flush 2) edit ' - 'the config file 3) use @config reload.'), Raise=True) + irc.error(_("This configuration variable is not writeable " + "via IRC. To change it you have to: 1) use the 'flush' command 2) edit " + "the config file 3) use the 'config reload' command."), Raise=True) capability = getCapability(group._name) if ircdb.checkCapability(msg.prefix, capability): # I think callCommand catches exceptions here. Should it?