Software /
code /
prosody
Diff
util/datamanager.lua @ 177:606c433955e7
Bug fixes and checks for presence subscriptions, etc
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 00:22:18 +0500 |
parent | 129:0f119bece309 |
child | 182:f5cb6b5a6eb7 |
line wrap: on
line diff
--- a/util/datamanager.lua Sat Oct 25 21:16:08 2008 +0500 +++ b/util/datamanager.lua Sun Oct 26 00:22:18 2008 +0500 @@ -6,6 +6,7 @@ local log = log; local io_open = io.open; local tostring = tostring; +local error = error; module "datamanager" @@ -49,6 +50,8 @@ 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