mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 13:01:06 -05:00
Merge c389be4f373bd0a39550549398f726c3bd8f0b6e into c81ff286975701ae78246cd8f24284ca3aeac86d
This commit is contained in:
commit
fde30be95a
@ -108,8 +108,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…
x
Reference in New Issue
Block a user