From 15afe113cb4ac8d5b4050021af398a81e8c392a7 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Wed, 1 Sep 2010 22:46:35 +0200 Subject: mod_adhoc: remove 0.7 compat code --- plugins/adhoc/mod_adhoc.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/adhoc/mod_adhoc.lua b/plugins/adhoc/mod_adhoc.lua index 181652e4..9a128557 100644 --- a/plugins/adhoc/mod_adhoc.lua +++ b/plugins/adhoc/mod_adhoc.lua @@ -19,9 +19,7 @@ module:hook("iq/host/"..xmlns_disco.."#info:query", function (event) local node = stanza.tags[1].attr.node; if stanza.attr.type == "get" and node and commands[node] then - -- Required for Prosody <= 0.7 - local privileged = is_admin(stanza.attr.from) - or is_admin(stanza.attr.from, stanza.attr.to); + local privileged = is_admin(stanza.attr.from, stanza.attr.to); if (commands[node].permission == "admin" and privileged) or (commands[node].permission == "user") then reply = st.reply(stanza); -- cgit v1.2.3