# HG changeset patch # User Matthew Wild # Date 1277229850 -3600 # Node ID e5234625fc42f1f0998bf4eaf37eb4a75ecfaecb # Parent c116c4b2db5aa449a51dbfe2f1d1606511e141fe mod_adhoc: Update for new is_admin usage diff -r c116c4b2db5a -r e5234625fc42 plugins/adhoc/mod_adhoc.lua --- 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);