From 1746f7eea0135b89a4f871d11c71cded04c4c0c3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 26 Oct 2008 00:22:18 +0500 Subject: Bug fixes and checks for presence subscriptions, etc --- util/datamanager.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util') 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 -- cgit v1.2.3