aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-12 13:06:41 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-12 13:06:41 +0500
commit5e62fe6fdbf2dfd0fad41b1ee027cc14114dd84e (patch)
treee381f21cd41c69eb94f656ffc5f1d9e2eb2c5bb0
parent2ef63904d65d0883e2687aa3d23bcbecf80f920e (diff)
downloadprosody-5e62fe6fdbf2dfd0fad41b1ee027cc14114dd84e.tar.gz
prosody-5e62fe6fdbf2dfd0fad41b1ee027cc14114dd84e.zip
mod_pep: Fix a nil index bug
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 0c360b38..74abd494 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -51,7 +51,7 @@ module:hook("presence/bare", function(data)
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