--- a/core/sessionmanager.lua Sun Apr 05 19:42:56 2009 +0100 +++ b/core/sessionmanager.lua Sun Apr 05 20:06:39 2009 +0100 @@ -182,6 +182,11 @@ session.notopen = nil; end +function streamclosed(session) + session.send("</stream:stream>"); + session.notopen = true; +end + function send_to_available_resources(user, host, stanza) local count = 0; local to = stanza.attr.to;