aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-26 18:22:10 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-26 18:22:10 +0500
commitd6f3ce748bc5aa2e2d7676713f7564187afed9a6 (patch)
treecc136c57e7b7b5b5aad9c8ecd5577d0584e9ea1e
parent89fb5fa885e4a0349799a0209203d956e793c68f (diff)
downloadprosody-d6f3ce748bc5aa2e2d7676713f7564187afed9a6.tar.gz
prosody-d6f3ce748bc5aa2e2d7676713f7564187afed9a6.zip
ejabberdsql2prosody: Fixed a nil global access error
-rw-r--r--tools/ejabberdsql2prosody.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua
index def3a907..b3077331 100644
--- a/tools/ejabberdsql2prosody.lua
+++ b/tools/ejabberdsql2prosody.lua
@@ -214,7 +214,7 @@ end
function roster_group(node, host, jid, group)
local roster = dm.load(node, host, "roster") or {};
local item = roster[jid];
- if not item then print("Warning: No roster item "..jid.." for user "..user..", can't put in group "..group); return; end
+ if not item then print("Warning: No roster item "..jid.." for user "..node..", can't put in group "..group); return; end
item.groups[group] = true;
local ret, err = dm.store(node, host, "roster", roster);
print("["..(err or "success").."] roster-group: " ..node.."@"..host.." - "..jid.." - "..group);