Software /
code /
prosody
Changeset
3793:b7b3e575a12b
mod_pep: Fixed a nil access (thanks Zash).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 28 Nov 2010 12:58:54 +0500 |
parents | 3792:1f9ab0fa77cc |
children | 3794:56add628d838 |
files | plugins/mod_pep.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pep.lua Sun Nov 28 07:56:08 2010 +0500 +++ b/plugins/mod_pep.lua Sun Nov 28 12:58:54 2010 +0500 @@ -235,7 +235,7 @@ end hash_map[ver] = notify; -- update hash map if self then - for jid, item in pairs(origin.roster) do -- for all interested contacts + for jid, item in pairs(session.roster) do -- for all interested contacts if item.subscription == "both" or item.subscription == "from" then if not recipients[jid] then recipients[jid] = {}; end recipients[jid][contact] = notify;