Mercurial > prosody-hg
diff plugins/adhoc/mod_adhoc.lua @ 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 | 24d2c9be0149 |
| children | 4495403470cb |
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);
