Merged with trunk

Thu, 02 Jul 2009 00:47:21 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 02 Jul 2009 00:47:21 +0500
changeset 1452
0ae8787e4e7d
parent 1451
cc0aa9470775 (diff)
parent 1450
c1c7b27b983b (current diff)
child 1453
64c77c6eb30e

Merged with trunk

--- a/plugins/mod_pep.lua	Wed Jul 01 17:53:18 2009 +0100
+++ b/plugins/mod_pep.lua	Thu Jul 02 00:47:21 2009 +0500
@@ -54,8 +54,9 @@
 	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

mercurial