Software /
code /
prosody
Changeset
1332:f7fed9f77455
mod_pep: Fix a nil index bug
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Jun 2009 13:06:41 +0500 |
parents | 1327:20285e9d71ee |
children | 1333:d74441a2f3e8 |
files | plugins/mod_pep.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Sun Jun 07 18:06:01 2009 +0500 +++ b/plugins/mod_pep.lua Fri Jun 12 13:06:41 2009 +0500 @@ -51,7 +51,7 @@ if t == "unavailable" or t == "error" then if recipients[user] then recipients[user][recipient] = nil; end elseif not t then - recipients[user] = recipients[user][recipient] or {}; + recipients[user] = recipients[user] or {}; if not recipients[user][recipient] then recipients[user][recipient] = true; for node, message in pairs(data[user] or {}) do