Software /
code /
prosody
Comparison
plugins/mod_bosh.lua @ 725:96110075288b
Replacing pretty_print() with top_tag() for logging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 16 Jan 2009 04:37:16 +0000 |
parent | 701:dc67e3cffff4 |
child | 763:8e77a39826c2 |
comparison
equal
deleted
inserted
replaced
724:8beae443867f | 725:96110075288b |
---|---|
211 t_insert(session.requests, request); | 211 t_insert(session.requests, request); |
212 request.sid = sid; | 212 request.sid = sid; |
213 end | 213 end |
214 | 214 |
215 function stream_callbacks.handlestanza(request, stanza) | 215 function stream_callbacks.handlestanza(request, stanza) |
216 log("debug", "BOSH stanza received: %s\n", stanza:pretty_print()); | 216 log("debug", "BOSH stanza received: %s\n", stanza:top_tag()); |
217 local session = sessions[request.sid]; | 217 local session = sessions[request.sid]; |
218 if session then | 218 if session then |
219 if stanza.attr.xmlns == xmlns_bosh then | 219 if stanza.attr.xmlns == xmlns_bosh then |
220 stanza.attr.xmlns = "jabber:client"; | 220 stanza.attr.xmlns = "jabber:client"; |
221 end | 221 end |