Software /
code /
prosody
Diff
plugins/mod_pep.lua @ 1332:f7fed9f77455
mod_pep: Fix a nil index bug
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 12 Jun 2009 13:06:41 +0500 |
parent | 1327:20285e9d71ee |
child | 1335:7c71783b40cf |
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