diff plugins/adhoc/mod_adhoc.lua @ 13020:3174308d127e

mod_adhoc: Remove "mod_" prefix from permission action name Other places doesn't have "mod_" there, why should it here?
author Kim Alvefur <zash@zash.se>
date Sun, 02 Apr 2023 21:58:53 +0200
parents 74b9e05af71e
children 6771acb8e857
line wrap: on
line diff
--- a/plugins/adhoc/mod_adhoc.lua	Thu Mar 17 17:45:27 2022 +0000
+++ b/plugins/adhoc/mod_adhoc.lua	Sun Apr 02 21:58:53 2023 +0200
@@ -15,7 +15,7 @@
 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