aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-26 18:17:54 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-26 18:17:54 +0500
commit89fb5fa885e4a0349799a0209203d956e793c68f (patch)
tree3f0295b934b4246d59882b449af3b90e5cdf7698 /tools
parentea959556cf118f4c2afd3e85a5fe8f1445b734b3 (diff)
downloadprosody-89fb5fa885e4a0349799a0209203d956e793c68f.tar.gz
prosody-89fb5fa885e4a0349799a0209203d956e793c68f.zip
ejabberdsql2prosody: Add support for rosterusers.ask == "B" (both pending in and out subscriptions)
Diffstat (limited to 'tools')
-rw-r--r--tools/ejabberdsql2prosody.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua
index ddbe3ee2..def3a907 100644
--- a/tools/ejabberdsql2prosody.lua
+++ b/tools/ejabberdsql2prosody.lua
@@ -241,6 +241,9 @@ for i, row in ipairs(t["rosterusers"] or NULL) do
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);