Wed, 01 Sep 2010 22:46:35 +0200
mod_adhoc: remove 0.7 compat code
plugins/adhoc/mod_adhoc.lua | file | annotate | diff | comparison | revisions |
--- a/plugins/adhoc/mod_adhoc.lua Wed Sep 01 22:44:30 2010 +0200 +++ b/plugins/adhoc/mod_adhoc.lua Wed Sep 01 22:46:35 2010 +0200 @@ -19,9 +19,7 @@ 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);