Changeset

1603:d11606859400

ejabberdsql2prosody: Fixed a nil global access error
author Waqas Hussain <waqas20@gmail.com>
date Sun, 26 Jul 2009 18:22:10 +0500
parents 1602:1056369a29df
children 1604:5097583259e0
files tools/ejabberdsql2prosody.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ejabberdsql2prosody.lua	Sun Jul 26 18:17:54 2009 +0500
+++ b/tools/ejabberdsql2prosody.lua	Sun Jul 26 18:22:10 2009 +0500
@@ -214,7 +214,7 @@
 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);