Diff

mod_profile/mod_profile.lua @ 1499:698686dca982

mod_profile: Fix global access
author Kim Alvefur <zash@zash.se>
date Mon, 01 Sep 2014 18:15:34 +0200
parent 1470:b291a9423e0f
child 1503:c4c9ccc6e6c9
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