From 9e6182bb1119b364f07aec269a7d99f8086328a5 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 26 Jul 2009 15:36:06 +0500 Subject: ejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions --- tools/ejabberdsql2prosody.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/ejabberdsql2prosody.lua') diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua index 6fd73fdd..861ef141 100644 --- a/tools/ejabberdsql2prosody.lua +++ b/tools/ejabberdsql2prosody.lua @@ -226,6 +226,7 @@ for i, row in ipairs(t["rosterusers"] or NULL) do 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); -- cgit v1.2.3