Diff

tools/ejabberdsql2prosody.lua @ 1602:1056369a29df

ejabberdsql2prosody: Add support for rosterusers.ask == "B" (both pending in and out subscriptions)
author Waqas Hussain <waqas20@gmail.com>
date Sun, 26 Jul 2009 18:17:54 +0500
parent 1601:a3ffc27b6207
child 1603:d11606859400
line wrap: on
line diff
--- a/tools/ejabberdsql2prosody.lua	Sun Jul 26 18:12:32 2009 +0500
+++ b/tools/ejabberdsql2prosody.lua	Sun Jul 26 18:17:54 2009 +0500
@@ -241,6 +241,9 @@
 	elseif ask == "I" then
 		roster_pending(node, host, contact);
 		ask = nil;
+	elseif ask == "B" then
+		roster_pending(node, host, contact);
+		ask = "subscribe";
 	else error("Unknown ask type: "..ask); end
 	local item = {name = name, ask = ask, subscription = subscription, groups = {}};
 	roster(node, host, contact, item);