Software /
code /
prosody
Diff
core/modulemanager.lua @ 4381:bf81b4784853
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 17 Sep 2011 20:28:46 +0500 |
parent | 4363:35ebd8e5747a |
child | 4383:718445c040c4 |
line wrap: on
line diff
--- a/core/modulemanager.lua Sat Sep 17 20:25:11 2011 +0500 +++ b/core/modulemanager.lua Sat Sep 17 20:28:46 2011 +0500 @@ -189,7 +189,7 @@ for i = #t,1,-1 do local value = t[i]; t[i] = nil; - hosts[host].events.fire_event("item-removed/"..key, {source = self, item = value}); + hosts[host].events.fire_event("item-removed/"..key, {source = mod.module, item = value}); end end end