mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
Config: note "config flush false" when option is not writeable via IRC
This commit is contained in:
parent
711db72ad0
commit
c389be4f37
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user