diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-26 08:26:24 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-26 08:26:24 +0500 |
commit | 111b86655743e9d350ba4fac1088557f44d795bb (patch) | |
tree | d806b64416f08bf2f26f46c21635f66063a5f325 | |
parent | e96a7a068983fc064815e509cbb6ec003e3961a2 (diff) | |
download | prosody-111b86655743e9d350ba4fac1088557f44d795bb.tar.gz prosody-111b86655743e9d350ba4fac1088557f44d795bb.zip |
Minor bug fix
-rw-r--r-- | core/discomanager.lua | 4 |
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
|