Changeset

420:aa1db0a80089

Minor bug fix
author Waqas Hussain <waqas20@gmail.com>
date Wed, 26 Nov 2008 08:26:24 +0500
parents 419:af362df8e6fd
children 421:63be85693710
files core/discomanager.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/discomanager.lua	Wed Nov 26 07:44:38 2008 +0500
+++ b/core/discomanager.lua	Wed Nov 26 08:26:24 2008 +0500
@@ -37,11 +37,11 @@
 	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