Comparison

plugins/mod_smacks.lua @ 12048:f087bfd021ad

mod_smacks: Fix typo
author Kim Alvefur <zash@zash.se>
date Wed, 15 Dec 2021 11:24:45 +0100
parent 12047:81858fd6f198
child 12049:7dde1edaf067
comparison
equal deleted inserted replaced
12047:81858fd6f198 12048:f087bfd021ad
440 -- store message in offline store, if this client does not use mam *and* was the last client online 440 -- store message in offline store, if this client does not use mam *and* was the last client online
441 local sessions = prosody.hosts[module.host].sessions[session.username] and 441 local sessions = prosody.hosts[module.host].sessions[session.username] and
442 prosody.hosts[module.host].sessions[session.username].sessions or nil; 442 prosody.hosts[module.host].sessions[session.username].sessions or nil;
443 if sessions and next(sessions) == session.resource and next(sessions, session.resource) == nil then 443 if sessions and next(sessions) == session.resource and next(sessions, session.resource) == nil then
444 local ok = module:fire_event("message/offline/handle", { origin = session, username = session.username, stanza = stanza }); 444 local ok = module:fire_event("message/offline/handle", { origin = session, username = session.username, stanza = stanza });
445 session.log("debug", "mod_smacks delivery/failuere returning %s for offline-handled stanza", tostring(ok)); 445 session.log("debug", "mod_smacks delivery/failure returning %s for offline-handled stanza", tostring(ok));
446 return ok; -- if stanza was handled, don't send an error 446 return ok; -- if stanza was handled, don't send an error
447 end 447 end
448 end 448 end
449 end 449 end
450 end); 450 end);