Config: note "config flush false" when option is not writeable via IRC

This commit is contained in:
Aminda Suomalainen 2021-05-27 10:47:11 +03:00
parent 711db72ad0
commit c389be4f37
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 3 additions and 2 deletions

View File

@ -107,8 +107,9 @@ def isReadOnly(name):
def checkCanSetValue(irc, msg, group):
if isReadOnly(group._name):
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)
"via IRC. To change it you have to: 1) use the 'flush' command "
"2) use the 'config flush false' command 3) edit the config "
"file 4) use the 'config reload' command."), Raise=True)
capability = getCapability(irc, group._name)
if not ircdb.checkCapability(msg.prefix, capability):
irc.errorNoCapability(capability, Raise=True)