Changeset

3485:3eee60c6a436

mod_adhoc: remove 0.7 compat code
author Florian Zeitz <florob@babelmonkeys.de>
date Wed, 01 Sep 2010 22:46:35 +0200
parents 3484:66910810a9f7
children 3486:8a46bb70016f
files plugins/adhoc/mod_adhoc.lua
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);