Software / code / prosody
Comparison
plugins/mod_smacks.lua @ 12049:7dde1edaf067
mod_smacks: Remove unused event
Since nothing uses it. Some equivalent functionality may return in the
future.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 15 Dec 2021 12:06:58 +0100 |
| parent | 12048:f087bfd021ad |
| child | 12050:7b87a1747eb2 |
comparison
equal
deleted
inserted
replaced
| 12048:f087bfd021ad | 12049:7dde1edaf067 |
|---|---|
| 380 return; | 380 return; |
| 381 end | 381 end |
| 382 | 382 |
| 383 for _=1,math_min(handled_stanza_count,#queue) do | 383 for _=1,math_min(handled_stanza_count,#queue) do |
| 384 local handled_stanza = t_remove(origin.outgoing_stanza_queue, 1); | 384 local handled_stanza = t_remove(origin.outgoing_stanza_queue, 1); |
| 385 module:fire_event("delivery/success", { session = origin, stanza = handled_stanza }); | |
| 386 end | 385 end |
| 387 | 386 |
| 388 origin.log("debug", "#queue = %d", #queue); | 387 origin.log("debug", "#queue = %d", #queue); |
| 389 origin.last_acknowledged_stanza = origin.last_acknowledged_stanza + handled_stanza_count; | 388 origin.last_acknowledged_stanza = origin.last_acknowledged_stanza + handled_stanza_count; |
| 390 request_ack_now_if_needed(origin, false, "handle_a", nil) | 389 request_ack_now_if_needed(origin, false, "handle_a", nil) |