Comparison

mod_cloud_notify/mod_cloud_notify.lua @ 4151:fa79d19d0fdd

mod_cloud_notify: fix comment text
author tmolitor <thilo@eightysoft.de>
date Wed, 23 Sep 2020 19:55:46 +0200
parent 3996:42682505e692
child 4221:e5998f53f4ff
comparison
equal deleted inserted replaced
4150:d3d2e9e7e8b7 4151: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