equal
deleted
inserted
replaced
255 elseif st_name == "message" then |
255 elseif st_name == "message" then |
256 -- unpack carbon copies |
256 -- unpack carbon copies |
257 local stanza_direction = "in"; |
257 local stanza_direction = "in"; |
258 local carbon; |
258 local carbon; |
259 local st_type; |
259 local st_type; |
260 -- support carbon copied message stanzas having an arbitrary message-namespace or no message-namespace at all |
260 -- support carbon copied message stanzas |
261 if not carbon then carbon = stanza:find("{urn:xmpp:carbons:2}/{urn:xmpp:forward:0}/{jabber:client}message"); end |
261 if not carbon then carbon = stanza:find("{urn:xmpp:carbons:2}/{urn:xmpp:forward:0}/{jabber:client}message"); end |
262 stanza_direction = carbon and stanza:child_with_name("sent") and "out" or "in"; |
262 stanza_direction = carbon and stanza:child_with_name("sent") and "out" or "in"; |
263 if carbon then stanza = carbon; end |
263 if carbon then stanza = carbon; end |
264 st_type = stanza.attr.type; |
264 st_type = stanza.attr.type; |
265 |
265 |