Comparison

core/storagemanager.lua @ 7645:d7b1bc069c12

storagemanager: Fix for previous commit
author Matthew Wild <mwild1@gmail.com>
date Wed, 31 Aug 2016 16:10:00 +0100
parent 7644:90a4790c2329
child 7647:e9d7a409e236
child 7947:24170d74b00b
comparison
equal deleted inserted replaced
7644:90a4790c2329 7645:d7b1bc069c12
161 end 161 end
162 end 162 end
163 end 163 end
164 if ret then 164 if ret then
165 local event_data = { host = host, store_name = store, store_type = typ, store = ret }; 165 local event_data = { host = host, store_name = store, store_type = typ, store = ret };
166 prosody.hosts[host].fire_event("store-opened", event_data); 166 prosody.hosts[host].events.fire_event("store-opened", event_data);
167 ret, err = event_data.store, event_data.store_err; 167 ret, err = event_data.store, event_data.store_err;
168 end 168 end
169 return ret, err; 169 return ret, err;
170 end 170 end
171 171