# HG changeset patch # User Florian Zeitz # Date 1283373995 -7200 # Node ID 3eee60c6a436a04db08ca2c1acc9a5404ce259c7 # Parent 66910810a9f78373ff1466dfe51f33d939473929 mod_adhoc: remove 0.7 compat code diff -r 66910810a9f7 -r 3eee60c6a436 plugins/adhoc/mod_adhoc.lua --- 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);