aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-09 03:21:16 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-09 03:21:16 +0500
commit9048ca53285397c3853cc3ae4b970fd0aed9f990 (patch)
tree3e5ef8d33ccaffde56fa57596831db80d5e25226
parent042012b7295c432f17e8e603372f46c3bb660eba (diff)
downloadprosody-9048ca53285397c3853cc3ae4b970fd0aed9f990.tar.gz
prosody-9048ca53285397c3853cc3ae4b970fd0aed9f990.zip
Minor fix
-rw-r--r--util/datamanager.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index 2f5be002..1deb6b3d 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -5,6 +5,7 @@ local char = string.char;
local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
local log = log;
local io_open = io.open;
+local tostring = tostring;
module "datamanager"
@@ -30,7 +31,7 @@ local function basicSerialize (o)
if type(o) == "number" or type(o) == "boolean" then
return tostring(o)
else -- assume it is a string
- return string.format("%q", tostring(o))
+ return format("%q", tostring(o))
end
end