Comparison

mod_smacks/mod_smacks.lua @ 3985:c3e9caa29857

mod_smacks: fix typo in last commit
author tmolitor <thilo@eightysoft.de>
date Mon, 20 Apr 2020 15:30:56 +0200
parent 3984:4e5fde519116
child 3986:9ec23a457f9a
comparison
equal deleted inserted replaced
3984:4e5fde519116 3985:c3e9caa29857
424 for tag in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do 424 for tag in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do
425 if tag.attr.by == by_jid then 425 if tag.attr.by == by_jid then
426 return tag.attr.id; 426 return tag.attr.id;
427 end 427 end
428 end 428 end
429 return null; 429 return nil;
430
431 end 430 end
432 module:hook("delivery/failure", function(event) 431 module:hook("delivery/failure", function(event)
433 local session, stanza = event.session, event.stanza; 432 local session, stanza = event.session, event.stanza;
434 -- Only deal with authenticated (c2s) sessions 433 -- Only deal with authenticated (c2s) sessions
435 if session.username then 434 if session.username then