diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-07-26 18:17:54 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-07-26 18:17:54 +0500 |
commit | 89fb5fa885e4a0349799a0209203d956e793c68f (patch) | |
tree | 3f0295b934b4246d59882b449af3b90e5cdf7698 | |
parent | ea959556cf118f4c2afd3e85a5fe8f1445b734b3 (diff) | |
download | prosody-89fb5fa885e4a0349799a0209203d956e793c68f.tar.gz prosody-89fb5fa885e4a0349799a0209203d956e793c68f.zip |
ejabberdsql2prosody: Add support for rosterusers.ask == "B" (both pending in and out subscriptions)
-rw-r--r-- | tools/ejabberdsql2prosody.lua | 3 |
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); |