mod_cloud_notify/mod_cloud_notify.lua
changeset 4155 fa79d19d0fdd
parent 4000 42682505e692
child 4225 e5998f53f4ff
equal deleted inserted replaced
4154:d3d2e9e7e8b7 4155:fa79d19d0fdd
   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