aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-06-22 19:04:10 +0100
committerMatthew Wild <mwild1@gmail.com>2010-06-22 19:04:10 +0100
commit1ae3061151891c94850346d938657d0316d17c4e (patch)
tree0186eb2240e3eb4b054d9c125ef45f350b3b4599 /plugins
parent434a0e7b67941da4adf2c38b94bd5ec23bc0892b (diff)
downloadprosody-1ae3061151891c94850346d938657d0316d17c4e.tar.gz
prosody-1ae3061151891c94850346d938657d0316d17c4e.zip
mod_adhoc: Update for new is_admin usage
Diffstat (limited to 'plugins')
-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 6f91a61b..41362d81 100644
--- a/plugins/adhoc/mod_adhoc.lua
+++ b/plugins/adhoc/mod_adhoc.lua
@@ -15,9 +15,7 @@ module:add_feature(xmlns_cmd);
module:hook("iq/host/"..xmlns_disco.."#items:query", function (event)
local origin, stanza = event.origin, event.stanza;
- -- TODO: Is this correct, or should is_admin be changed?
- 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 stanza.attr.type == "get" and stanza.tags[1].attr.node
and stanza.tags[1].attr.node == xmlns_cmd then
reply = st.reply(stanza);