mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +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):
|
def checkCanSetValue(irc, msg, group):
|
||||||
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 the 'flush' command 2) edit "
|
"via IRC. To change it you have to: 1) use the 'flush' command "
|
||||||
"the config file 3) use the 'config reload' command."), Raise=True)
|
"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)
|
capability = getCapability(irc, group._name)
|
||||||
if not ircdb.checkCapability(msg.prefix, capability):
|
if not ircdb.checkCapability(msg.prefix, capability):
|
||||||
irc.errorNoCapability(capability, Raise=True)
|
irc.errorNoCapability(capability, Raise=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user