From 04d4fb4a735cf69c467e9f5782603e4c8364a099 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 22 Jun 2009 02:58:28 +0100 Subject: sessionmanager: Fire event on resource bind --- core/sessionmanager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 19943db0..103533de 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -149,6 +149,8 @@ function bind_resource(session, resource) session.roster = rm_load_roster(session.username, session.host); + hosts[session.host].events.fire_event("resource-bind", session); + return true; end -- cgit v1.2.3