# HG changeset patch # User Waqas Hussain # Date 1316273326 -18000 # Node ID bf81b4784853864c2068c49451717c1e45928f16 # Parent 9f1c6180581792acb02079c5a676432c3e8900e7 modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload. diff -r 9f1c61805817 -r bf81b4784853 core/modulemanager.lua --- 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