Software /
code /
prosody
Diff
plugins/mod_smacks.lua @ 12081:6cc3135138d7
mod_smacks: Add future todo
The vision: All the queueing and counting and session replacement logic
in core, with mod_smacks only hooking this up to the XEP-0198 protocol.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 20 Dec 2021 00:21:04 +0100 |
parent | 12080:9744a0ceb767 |
child | 12112:08a949e63541 |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Mon Dec 20 00:18:47 2021 +0100 +++ b/plugins/mod_smacks.lua Mon Dec 20 00:21:04 2021 +0100 @@ -274,6 +274,7 @@ function (session, stanza) -- Needs to be done after flushing sendq since those aren't stored as -- stanzas and counting them is weird. + -- TODO unify sendq and smqueue timer.add_task(1e-6, function () if can_do_smacks(session) then if stanza:get_child("sm", xmlns_sm3) then