aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-26 15:36:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-26 15:36:06 +0500
commit9e6182bb1119b364f07aec269a7d99f8086328a5 (patch)
tree89e3b19af98217f2f321ebe9038aa84f14fbbe23 /tools
parent8bba19d6205ab8983abd749add2a1b1c561f1296 (diff)
downloadprosody-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.lua1
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);