aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_uptime.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-20 22:47:34 +0100
committerKim Alvefur <zash@zash.se>2019-12-20 22:47:34 +0100
commite10171d44d362918cc0d4886e37018cd14843d0d (patch)
tree10b79de6881f3814f3064bb278f76959aa9eb9c1 /plugins/mod_uptime.lua
parent96c1406bcdea0d0e98b70fb968d5d315790cc391 (diff)
downloadprosody-e10171d44d362918cc0d4886e37018cd14843d0d.tar.gz
prosody-e10171d44d362918cc0d4886e37018cd14843d0d.zip
mod_adhoc: Improve permission setting (fix #1482) BC
Rename 'user' permission mode to 'any' for clarity, too easily mistaken for what the 'local_user' setting does. It is also removed as a default and made a required argument.
Diffstat (limited to 'plugins/mod_uptime.lua')
-rw-r--r--plugins/mod_uptime.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_uptime.lua b/plugins/mod_uptime.lua
index ccd8e511..035f7e9b 100644
--- a/plugins/mod_uptime.lua
+++ b/plugins/mod_uptime.lua
@@ -42,6 +42,6 @@ function uptime_command_handler ()
return { info = uptime_text(), status = "completed" };
end
-local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler);
+local descriptor = adhoc_new("Get uptime", "uptime", uptime_command_handler, "any");
module:provides("adhoc", descriptor);