aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/adhoc/adhoc.lib.lua4
-rw-r--r--plugins/adhoc/mod_adhoc.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua
index 2d00b778..0ce45e19 100644
--- a/plugins/adhoc/adhoc.lib.lua
+++ b/plugins/adhoc/adhoc.lib.lua
@@ -27,10 +27,10 @@ function _M.new(name, node, handler, permission)
error "the permission mode 'user' has been renamed 'any', please update your code"
end
if permission == "admin" then
- module:default_permission("prosody:admin", "mod_adhoc:"..node);
+ module:default_permission("prosody:admin", "adhoc:"..node);
permission = "check";
elseif permission == "global_admin" then
- module:default_permission("prosody:operator", "mod_adhoc:"..node);
+ module:default_permission("prosody:operator", "adhoc:"..node);
permission = "check";
end
return { name = name, node = node, handler = handler, cmdtag = _cmdtag, permission = permission };
diff --git a/plugins/adhoc/mod_adhoc.lua b/plugins/adhoc/mod_adhoc.lua
index 505579bf..4482682d 100644
--- a/plugins/adhoc/mod_adhoc.lua
+++ b/plugins/adhoc/mod_adhoc.lua
@@ -15,7 +15,7 @@ local commands = {};
module:add_feature(xmlns_cmd);
local function check_permissions(event, node, command)
- return (command.permission == "check" and module:may("mod_adhoc:"..node, event))
+ return (command.permission == "check" and module:may("adhoc:"..node, event))
or (command.permission == "local_user" and jid_host(event.stanza.attr.from) == module.host)
or (command.permission == "any");
end