Software /
code /
prosody-modules
Diff
mod_adhoc/adhoc/mod_adhoc.lua @ 207:1ae653712e37
mod_adhoc: Add capability to pass data to forms
mod_adhoc_cmd_modules: Update to use afforementioned functionality
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Sat, 10 Jul 2010 01:26:41 +0200 |
parent | 170:0d438a7ac4fc |
child | 244:e0802b2716c3 |
line wrap: on
line diff
--- a/mod_adhoc/adhoc/mod_adhoc.lua Fri Jul 09 22:38:05 2010 +0200 +++ b/mod_adhoc/adhoc/mod_adhoc.lua Sat Jul 10 01:26:41 2010 +0200 @@ -16,7 +16,7 @@ module:hook("iq/host/"..xmlns_disco.."#items:query", function (event) local origin, stanza = event.origin, event.stanza; - -- TODO: Is this correct, or should is_admin be changed? + -- Required for Prosody <= 0.7 local privileged = is_admin(stanza.attr.from) or is_admin(stanza.attr.from, stanza.attr.to); if stanza.attr.type == "get" and stanza.tags[1].attr.node @@ -42,7 +42,7 @@ if stanza.attr.type == "set" and stanza.tags[1] and stanza.tags[1].name == "command" then local node = stanza.tags[1].attr.node - -- TODO: Is this correct, or should is_admin be changed? + -- Required for Prosody <= 0.7 local privileged = is_admin(event.stanza.attr.from) or is_admin(stanza.attr.from, stanza.attr.to); if commands[node] then