aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-26 00:22:18 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-26 00:22:18 +0500
commit1746f7eea0135b89a4f871d11c71cded04c4c0c3 (patch)
tree0f93eb24de08f2ee9bc8fc09cf35731288b5fe5b /util
parent091e961c40b6d89f548efecea07e641e3f9c4210 (diff)
downloadprosody-1746f7eea0135b89a4f871d11c71cded04c4c0c3.tar.gz
prosody-1746f7eea0135b89a4f871d11c71cded04c4c0c3.zip
Bug fixes and checks for presence subscriptions, etc
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