--- Prosody IM v0.3
+-- Prosody IM v0.4
-- Copyright (C) 2008-2009 Matthew Wild
-- Copyright (C) 2008-2009 Waqas Hussain
--
number=function(stanza, object)
stanza:tag("int"):text(tostring(object)):up();
end;
+ ["nil"]=function(stanza, object) -- nil extension
+ stanza:tag("nil"):up();
+ end;
};
_lua_to_xmlrpc = function(stanza, object)
local h = map[type(object)];
if tostring(tonumber(n)) == n then n = tonumber(n); end
return n;
end;
+ ["nil"]=function(stanza) -- nil extension
+ return nil;
+ end;
}
_xmlrpc_to_lua = function(stanza)
local h = rmap[stanza.name];