Changeset

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
parents 4380:9f1c61805817
children 4382:29581d16450c
files core/modulemanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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