Software /
code /
prosody
Changeset
1647:066cd784d97b
ejabberdsql2prosody: Fix access of undefined global
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 08 Aug 2009 21:10:25 +0500 |
parents | 1646:21bcc7b8b4d8 |
children | 1648:b05371e6f058 |
files | tools/ejabberdsql2prosody.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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