Software /
code /
prosody
Changeset
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 |
parents | 1601:a3ffc27b6207 |
children | 1603:d11606859400 |
files | tools/ejabberdsql2prosody.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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);