From 584995d0516cf596b96d4688db94d84155a12d1f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 2 Jul 2009 00:43:32 +0500 Subject: mod_pep: Fixed boolean indexing error while casting all messages for a user --- plugins/mod_pep.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 4a8300f1..c6811928 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -54,8 +54,9 @@ local function publish_all(user, recipient, session) local d = data[user]; local notify = recipients[user] and recipients[user][recipient]; if d and notify then - for node, message in pairs(notify) do - if d[node] then + for node in pairs(notify) do + local message = d[node]; + if message then message.attr.to = recipient; session.send(message); end -- cgit v1.2.3