aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-09-17 20:28:46 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-09-17 20:28:46 +0500
commit108aa8061b43f9a69962a389e7dd947d1bdc9331 (patch)
tree854f4f05aa62d55edb5b394583617b8ab3b6efdb
parent364dbbef55aa57c4d74cda7f2bb3a744a9c871b8 (diff)
downloadprosody-108aa8061b43f9a69962a389e7dd947d1bdc9331.tar.gz
prosody-108aa8061b43f9a69962a389e7dd947d1bdc9331.zip
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload.
-rw-r--r--core/modulemanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index b89c5af3..8d4d5633 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -189,7 +189,7 @@ function unload(host, name, ...)
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