diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-07-26 15:36:06 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-07-26 15:36:06 +0500 |
commit | 9e6182bb1119b364f07aec269a7d99f8086328a5 (patch) | |
tree | 89e3b19af98217f2f321ebe9038aa84f14fbbe23 /tools | |
parent | 8bba19d6205ab8983abd749add2a1b1c561f1296 (diff) | |
download | prosody-9e6182bb1119b364f07aec269a7d99f8086328a5.tar.gz prosody-9e6182bb1119b364f07aec269a7d99f8086328a5.zip |
ejabberdsql2prosody: Fixed: 'ask' value should be nil for pending-in subscriptions
Diffstat (limited to 'tools')
-rw-r--r-- | tools/ejabberdsql2prosody.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |