aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-22 02:58:28 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-22 02:58:28 +0100
commit04d4fb4a735cf69c467e9f5782603e4c8364a099 (patch)
tree78175632d81a6e32fdffc34f42c3ed6555e10e4b
parente418f8a9c642c2b0c1ab06160441de068350ac72 (diff)
downloadprosody-04d4fb4a735cf69c467e9f5782603e4c8364a099.tar.gz
prosody-04d4fb4a735cf69c467e9f5782603e4c8364a099.zip
sessionmanager: Fire event on resource bind
-rw-r--r--core/sessionmanager.lua2
1 files changed, 2 insertions, 0 deletions
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