plugins/adhoc/mod_adhoc.lua

changeset 3286
e5234625fc42
parent 3231
ad3fbed1dda5
child 3456
1201a743fe63
--- a/plugins/adhoc/mod_adhoc.lua	Tue Jun 22 19:00:01 2010 +0100
+++ b/plugins/adhoc/mod_adhoc.lua	Tue Jun 22 19:04:10 2010 +0100
@@ -15,9 +15,7 @@
 
 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);

mercurial