Mercurial > prosody-modules
comparison mod_privacy/mod_privacy.lua @ 14:0892941186f2
mod_privacy: Make tmp variable a local
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 25 Sep 2009 22:46:13 +0100 |
| parents | 7d70faba234c |
| children | 14b18ef8b554 |
comparison
equal
deleted
inserted
replaced
| 13:135855b685d6 | 14:0892941186f2 |
|---|---|
| 89 local list = {}; | 89 local list = {}; |
| 90 list.name = name; | 90 list.name = name; |
| 91 list.items = {}; | 91 list.items = {}; |
| 92 | 92 |
| 93 for _,item in ipairs(entries) do | 93 for _,item in ipairs(entries) do |
| 94 tmp = {}; | 94 local tmp = {}; |
| 95 tmp["type"] = item.attr.type; | 95 tmp["type"] = item.attr.type; |
| 96 tmp["value"] = item.attr.value; | 96 tmp["value"] = item.attr.value; |
| 97 tmp["action"] = item.attr.action; | 97 tmp["action"] = item.attr.action; |
| 98 tmp["order"] = item.attr.order; | 98 tmp["order"] = item.attr.order; |
| 99 tmp["presence-in"] = false; | 99 tmp["presence-in"] = false; |
