# HG changeset patch # User Kim Alvefur # Date 1409588134 -7200 # Node ID 698686dca9827490cf97ce26b07133c24ae1d953 # Parent e82592ed744b413c48e9b71e4e7cec920ccdd6c1 mod_profile: Fix global access diff -r e82592ed744b -r 698686dca982 mod_profile/mod_profile.lua --- 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