diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-03-14 16:05:22 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-03-14 16:05:22 +0000 |
commit | bcd9d386bf3d145872796dd6bb183a34bf64b2f8 (patch) | |
tree | 3191e9e9af444ce237f12aa322c891fea9aefc17 /util/xmlrpc.lua | |
parent | 94692c20efb3c0edc09710f509c0c310e5c9d0c1 (diff) | |
parent | d2ebe25dc579fb0ab21e411518c50eee1fae0f99 (diff) | |
download | prosody-bcd9d386bf3d145872796dd6bb183a34bf64b2f8.tar.gz prosody-bcd9d386bf3d145872796dd6bb183a34bf64b2f8.zip |
Merge
Diffstat (limited to 'util/xmlrpc.lua')
-rw-r--r-- | util/xmlrpc.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/util/xmlrpc.lua b/util/xmlrpc.lua index 5a391754..8b1d56cf 100644 --- a/util/xmlrpc.lua +++ b/util/xmlrpc.lua @@ -41,6 +41,9 @@ local map = { 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)]; @@ -146,6 +149,9 @@ local rmap = { 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]; |