mod_adhoc: remove 0.7 compat code

Wed, 01 Sep 2010 22:46:35 +0200

author
Florian Zeitz <florob@babelmonkeys.de>
date
Wed, 01 Sep 2010 22:46:35 +0200
changeset 3485
3eee60c6a436
parent 3484
66910810a9f7
child 3486
8a46bb70016f

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);

mercurial