Merge c389be4f373bd0a39550549398f726c3bd8f0b6e into c81ff286975701ae78246cd8f24284ca3aeac86d

This commit is contained in:
Aminda Suomalainen ⚧ 2025-04-15 03:15:26 +00:00 committed by GitHub
commit fde30be95a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)