diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-09-17 20:28:46 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-09-17 20:28:46 +0500 |
commit | ab05b98bf168ce1958d845b70e82e00114e07e20 (patch) | |
tree | 854f4f05aa62d55edb5b394583617b8ab3b6efdb /core/modulemanager.lua | |
parent | 857d23fcb8392c0b6d57975135a584a77b742402 (diff) | |
download | prosody-ab05b98bf168ce1958d845b70e82e00114e07e20.tar.gz prosody-ab05b98bf168ce1958d845b70e82e00114e07e20.zip |
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload.
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 2 |
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 |