diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2010-09-01 22:46:35 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2010-09-01 22:46:35 +0200 |
commit | 15afe113cb4ac8d5b4050021af398a81e8c392a7 (patch) | |
tree | c6bd800248f2be37bf1d4106bb620a00547d8ee4 /plugins/adhoc | |
parent | 78c373818497d0b6c3e6e4ae60eecb68538c85c5 (diff) | |
download | prosody-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.lua | 4 |
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); |