aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-26 17:29:56 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-26 17:29:56 +0500
commitb46f068a8718dca8ec85643a9dfbca665e9f617b (patch)
treecee49e10bfa044eeece49f760b5af812a121b43c /tools
parent9e6182bb1119b364f07aec269a7d99f8086328a5 (diff)
downloadprosody-b46f068a8718dca8ec85643a9dfbca665e9f617b.tar.gz
prosody-b46f068a8718dca8ec85643a9dfbca665e9f617b.zip
ejabberdsql2prosody: Added support for the escape sequence '\\' in strings
Diffstat (limited to 'tools')
-rw-r--r--tools/ejabberdsql2prosody.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua
index 861ef141..2943103f 100644
--- a/tools/ejabberdsql2prosody.lua
+++ b/tools/ejabberdsql2prosody.lua
@@ -39,6 +39,7 @@ end
local function unescape(s)
if s == "\\'" then return "'"; end
if s == "\\n" then return "\n"; end
+ if s == "\\\\" then return "\\"; end
error("Unknown escape sequence: "..s);
end
local function readString()