aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/adhoc
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2010-09-01 22:46:35 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2010-09-01 22:46:35 +0200
commit15afe113cb4ac8d5b4050021af398a81e8c392a7 (patch)
treec6bd800248f2be37bf1d4106bb620a00547d8ee4 /plugins/adhoc
parent78c373818497d0b6c3e6e4ae60eecb68538c85c5 (diff)
downloadprosody-15afe113cb4ac8d5b4050021af398a81e8c392a7.tar.gz
prosody-15afe113cb4ac8d5b4050021af398a81e8c392a7.zip
mod_adhoc: remove 0.7 compat code
Diffstat (limited to 'plugins/adhoc')
-rw-r--r--plugins/adhoc/mod_adhoc.lua4
1 files changed, 1 insertions, 3 deletions
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);