Comparison

plugins/mod_component.lua @ 959:e3db909065f2

sessionmanager, s2smanager, mod_component: Send reply </stream:stream> when client closes stream
author Matthew Wild <mwild1@gmail.com>
date Sun, 05 Apr 2009 20:06:39 +0100
parent 914:50850f15340c
child 979:d0fd49c4339c
comparison
equal deleted inserted replaced
958:172fb9a73017 959:e3db909065f2
67 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.host }):top_tag()); 67 ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.host }):top_tag());
68 68
69 end 69 end
70 70
71 function stream_callbacks.streamclosed(session) 71 function stream_callbacks.streamclosed(session)
72 session.send("</stream:stream>");
73 session.notopen = true;
72 end 74 end
73 75
74 local core_process_stanza = core_process_stanza; 76 local core_process_stanza = core_process_stanza;
75 77
76 function stream_callbacks.handlestanza(session, stanza) 78 function stream_callbacks.handlestanza(session, stanza)