`ruled.client` fixes (#3195)

* ruled.client: Fix a regression introduced when append/remove was added.

* ruled.client: Fix an error message grammar.
This commit is contained in:
Emmanuel Lepage Vallée 2021-03-22 00:04:13 -07:00 committed by GitHub
parent 50fa1b8679
commit 1c8b0b924d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -678,7 +678,7 @@ return setmetatable(module, {
__newindex = function(_, k, v)
if k == "rules" then
gdebug.deprecate(
"Use ruled.client.append_rules instead awful.rules.rules",
"Use ruled.client.append_rules instead of setting awful.rules.rules directly",
{deprecated_in=5}
)
@ -694,7 +694,7 @@ return setmetatable(module, {
crules:append_rules("awful.rules", v)
end
else
rawset(k, v)
rawset(module, k, v)
end
end,
__index = function(_, k)