Diff

core/sessionmanager.lua @ 1379:03d8a930053f

sessionmanager: Fire event on resource bind
author Matthew Wild <mwild1@gmail.com>
date Mon, 22 Jun 2009 02:58:28 +0100
parent 1301:d10d84f755b5
child 1395:1c547fb4e570
line wrap: on
line diff
--- a/core/sessionmanager.lua	Mon Jun 22 02:58:05 2009 +0100
+++ b/core/sessionmanager.lua	Mon Jun 22 02:58:28 2009 +0100
@@ -149,6 +149,8 @@
 	
 	session.roster = rm_load_roster(session.username, session.host);
 	
+	hosts[session.host].events.fire_event("resource-bind", session);
+	
 	return true;
 end