aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-10-26 13:19:09 +0000
committerMatthew Wild <mwild1@gmail.com>2008-10-26 13:19:09 +0000
commit4d5a2486b5e283a4d464fd19b74c2500903a009c (patch)
tree6a4bedaa461bcac7f7c4921d752fd49fb2efa1b8 /util
parent08940b23081e7328f25099816f54e8bcd9d280ae (diff)
parent1746f7eea0135b89a4f871d11c71cded04c4c0c3 (diff)
downloadprosody-4d5a2486b5e283a4d464fd19b74c2500903a009c.tar.gz
prosody-4d5a2486b5e283a4d464fd19b74c2500903a009c.zip
Merge presence/subscription support from waqas
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 43e23dc3..754c5620 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -6,6 +6,7 @@ local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
local tostring = tostring;
+local error = error;
module "datamanager"
@@ -49,6 +50,8 @@ local function simplesave (f, o)
f:write(",\n")
end
f:write("}\n")
+ elseif type(o) == "boolean" then
+ f:write(o and "true" or "false");
else
error("cannot serialize a " .. type(o))
end