ejabberdsql2prosody: Fix access of undefined global
authorWaqas Hussain <waqas20@gmail.com>
Sat, 08 Aug 2009 21:10:25 +0500
changeset 1647 066cd784d97b
parent 1646 21bcc7b8b4d8
child 1648 b05371e6f058
ejabberdsql2prosody: Fix access of undefined global
tools/ejabberdsql2prosody.lua
--- a/tools/ejabberdsql2prosody.lua	Fri Aug 07 18:29:14 2009 +0500
+++ b/tools/ejabberdsql2prosody.lua	Sat Aug 08 21:10:25 2009 +0500
@@ -136,8 +136,8 @@
 	while true do
 		local tname, tuples = readInsert();
 		if tname then
-			if t[name] then
-				local t_name = t[name];
+			if t[tname] then
+				local t_name = t[tname];
 				for i=1,#tuples do
 					table.insert(t_name, tuples[i]);
 				end