aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-26 08:26:24 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-26 08:26:24 +0500
commit111b86655743e9d350ba4fac1088557f44d795bb (patch)
treed806b64416f08bf2f26f46c21635f66063a5f325 /core
parente96a7a068983fc064815e509cbb6ec003e3961a2 (diff)
downloadprosody-111b86655743e9d350ba4fac1088557f44d795bb.tar.gz
prosody-111b86655743e9d350ba4fac1088557f44d795bb.zip
Minor bug fix
Diffstat (limited to 'core')
-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