aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_component.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua
index a5136f6c..7709d185 100644
--- a/plugins/mod_component.lua
+++ b/plugins/mod_component.lua
@@ -314,6 +314,7 @@ function listener.ondisconnect(conn, err)
local session = sessions[conn];
if session then
(session.log or log)("info", "component disconnected: %s (%s)", tostring(session.host), tostring(err));
+ module:fire_event("component-disconnected", { session = session, reason = err });
if session.on_destroy then session:on_destroy(err); end
sessions[conn] = nil;
for k in pairs(session) do