diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-08-08 21:10:25 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-08-08 21:10:25 +0500 |
commit | 5e6b8cabbedb26760eea3dff3417128accc3df03 (patch) | |
tree | f40367a84f5047a86b89c503525e2ef2714cce88 /tools/ejabberdsql2prosody.lua | |
parent | ce10683327a393828f0d2d222f7b81cf291c9eef (diff) | |
download | prosody-5e6b8cabbedb26760eea3dff3417128accc3df03.tar.gz prosody-5e6b8cabbedb26760eea3dff3417128accc3df03.zip |
ejabberdsql2prosody: Fix access of undefined global
Diffstat (limited to 'tools/ejabberdsql2prosody.lua')
-rw-r--r-- | tools/ejabberdsql2prosody.lua | 4 |
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 |