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()
ask = "subscribe";
elseif ask == "I" then
roster_pending(node, host, contact);
+ ask = nil;
else error("Unknown ask type: "..ask); end
local item = {name = name, ask = ask, subscription = subscription, groups = {}};
roster(node, host, contact, item);