From 8afc61204a0e9c475cb93fb0f0e1a8487f11e497 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 26 Jul 2009 15:36:06 +0500 Subject: [PATCH] ejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions --- tools/ejabberdsql2prosody.lua | 1 + 1 file changed, 1 insertion(+) 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); -- 2.30.2