aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ejabberdsql2prosody.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-08 21:10:25 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-08 21:10:25 +0500
commit5e6b8cabbedb26760eea3dff3417128accc3df03 (patch)
treef40367a84f5047a86b89c503525e2ef2714cce88 /tools/ejabberdsql2prosody.lua
parentce10683327a393828f0d2d222f7b81cf291c9eef (diff)
downloadprosody-5e6b8cabbedb26760eea3dff3417128accc3df03.tar.gz
prosody-5e6b8cabbedb26760eea3dff3417128accc3df03.zip
ejabberdsql2prosody: Fix access of undefined global
Diffstat (limited to 'tools/ejabberdsql2prosody.lua')
-rw-r--r--tools/ejabberdsql2prosody.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ejabberdsql2prosody.lua b/tools/ejabberdsql2prosody.lua
index 4aace085..295f5f88 100644
--- a/tools/ejabberdsql2prosody.lua
+++ b/tools/ejabberdsql2prosody.lua
@@ -136,8 +136,8 @@ local function readFile(filename)
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