comparison 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
parents b291a9423e0f
children c4c9ccc6e6c9
comparison
equal deleted inserted replaced
1498:e82592ed744b 1499:698686dca982
132 module:hook("iq-set/host/vcard-temp:vCard", handle_set); 132 module:hook("iq-set/host/vcard-temp:vCard", handle_set);
133 133
134 module:hook("presence/initial", function (event) 134 module:hook("presence/initial", function (event)
135 local username = event.origin.username 135 local username = event.origin.username
136 if not loaded_pep_for[username] then 136 if not loaded_pep_for[username] then
137 data = storage:get(username); 137 local data = storage:get(username);
138 if data then 138 if data then
139 update_pep(username, data); 139 update_pep(username, data);
140 end 140 end
141 loaded_pep_for[username] = true; 141 loaded_pep_for[username] = true;
142 end 142 end