aboutsummaryrefslogtreecommitdiffstats
path: root/core/discomanager.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/discomanager.lua')
-rw-r--r--core/discomanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/discomanager.lua b/core/discomanager.lua
index 5686f47f..ce0010d8 100644
--- a/core/discomanager.lua
+++ b/core/discomanager.lua
@@ -37,11 +37,11 @@ function addDiscoInfoHandler(jid, func)
return helper:addDiscoInfoHandler(jid, func);
end
-function set(plugin, origin, var)
+function set(plugin, var, origin)
-- TODO handle origin and host based on plugin.
local handler = function(reply, to, from, node) -- service discovery
if #node == 0 then
- reply:tag("feature", {var = var});
+ reply:tag("feature", {var = var}):up();
return true;
end
end