Mercurial > prosody-hg
comparison plugins/mod_pep.lua @ 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 | 04c7b71ce078 |
| children | 5c39dce29eaf |
comparison
equal
deleted
inserted
replaced
| 3792:1f9ab0fa77cc | 3793:b7b3e575a12b |
|---|---|
| 233 if nfeature then notify[nfeature] = true; end | 233 if nfeature then notify[nfeature] = true; end |
| 234 end | 234 end |
| 235 end | 235 end |
| 236 hash_map[ver] = notify; -- update hash map | 236 hash_map[ver] = notify; -- update hash map |
| 237 if self then | 237 if self then |
| 238 for jid, item in pairs(origin.roster) do -- for all interested contacts | 238 for jid, item in pairs(session.roster) do -- for all interested contacts |
| 239 if item.subscription == "both" or item.subscription == "from" then | 239 if item.subscription == "both" or item.subscription == "from" then |
| 240 if not recipients[jid] then recipients[jid] = {}; end | 240 if not recipients[jid] then recipients[jid] = {}; end |
| 241 recipients[jid][contact] = notify; | 241 recipients[jid][contact] = notify; |
| 242 end | 242 end |
| 243 end | 243 end |
