changeset 1499:698686dca982

mod_profile: Fix global access
author Kim Alvefur <zash@zash.se>
date Mon, 01 Sep 2014 18:15:34 +0200
parents e82592ed744b
children 045720a5fccd
files mod_profile/mod_profile.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua	Sun Aug 31 20:13:54 2014 +0200
+++ b/mod_profile/mod_profile.lua	Mon Sep 01 18:15:34 2014 +0200
@@ -134,7 +134,7 @@
 module:hook("presence/initial", function (event)
 	local username = event.origin.username
 	if not loaded_pep_for[username] then
-		data = storage:get(username);
+		local data = storage:get(username);
 		if data then
 			update_pep(username, data);
 		end