Comparison

tools/ejabberdsql2prosody.lua @ 1597:84328a4df655

ejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions
author Waqas Hussain <waqas20@gmail.com>
date Sun, 26 Jul 2009 15:36:06 +0500
parent 1596:4fcb2df97141
child 1598:d82e13d57821
comparison
equal deleted inserted replaced
1596:4fcb2df97141 1597:84328a4df655
224 ask = nil; 224 ask = nil;
225 elseif ask == "O" then 225 elseif ask == "O" then
226 ask = "subscribe"; 226 ask = "subscribe";
227 elseif ask == "I" then 227 elseif ask == "I" then
228 roster_pending(node, host, contact); 228 roster_pending(node, host, contact);
229 ask = nil;
229 else error("Unknown ask type: "..ask); end 230 else error("Unknown ask type: "..ask); end
230 local item = {name = name, ask = ask, subscription = subscription, groups = {}}; 231 local item = {name = name, ask = ask, subscription = subscription, groups = {}};
231 roster(node, host, contact, item); 232 roster(node, host, contact, item);
232 end 233 end
233 for i, row in ipairs(t["rostergroups"] or NULL) do 234 for i, row in ipairs(t["rostergroups"] or NULL) do