equal
deleted
inserted
replaced
180 |
180 |
181 (session.log or log)("info", "Sent reply <stream:stream> to client"); |
181 (session.log or log)("info", "Sent reply <stream:stream> to client"); |
182 session.notopen = nil; |
182 session.notopen = nil; |
183 end |
183 end |
184 |
184 |
|
185 function streamclosed(session) |
|
186 session.send("</stream:stream>"); |
|
187 session.notopen = true; |
|
188 end |
|
189 |
185 function send_to_available_resources(user, host, stanza) |
190 function send_to_available_resources(user, host, stanza) |
186 local count = 0; |
191 local count = 0; |
187 local to = stanza.attr.to; |
192 local to = stanza.attr.to; |
188 stanza.attr.to = nil; |
193 stanza.attr.to = nil; |
189 local h = hosts[host]; |
194 local h = hosts[host]; |