aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_smacks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-16 22:42:08 +0100
committerKim Alvefur <zash@zash.se>2021-12-16 22:42:08 +0100
commitd87188b309934c4afc1c478f63cf6d309d511651 (patch)
tree5ece01fcea4ce3da4d48adc2df44d02f147873a0 /plugins/mod_smacks.lua
parentd73f3bee876e8e4551fcb16e7a2f0404d5857e46 (diff)
downloadprosody-d87188b309934c4afc1c478f63cf6d309d511651.tar.gz
prosody-d87188b309934c4afc1c478f63cf6d309d511651.zip
mod_smacks: Fix indentation
Meld keeps messing up indentation when I merge and rebase...
Diffstat (limited to 'plugins/mod_smacks.lua')
-rw-r--r--plugins/mod_smacks.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua
index 246d1a53..7a0b608b 100644
--- a/plugins/mod_smacks.lua
+++ b/plugins/mod_smacks.lua
@@ -421,12 +421,12 @@ end);
module:hook("pre-resource-unbind", function (event)
local session = event.session;
if not session.smacks then return end
- if not session.resumption_token then
- local queue = session.outgoing_stanza_queue;
+ if not session.resumption_token then
+ local queue = session.outgoing_stanza_queue;
if queue:count_unacked() > 0 then
session.log("debug", "Destroying session with %d unacked stanzas", queue:count_unacked());
- handle_unacked_stanzas(session);
- end
+ handle_unacked_stanzas(session);
+ end
return
end