diff mod_smacks/mod_smacks.lua @ 1703:a53385a78a64

mod_smacks: Add stanza counting filter when resuming session
author Kim Alvefur <zash@zash.se>
date Wed, 06 May 2015 00:58:55 +0200
parents 5f5ff061b316
children 97291a4b17bd
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Wed May 06 00:55:00 2015 +0200
+++ b/mod_smacks/mod_smacks.lua	Wed May 06 00:58:55 2015 +0200
@@ -124,8 +124,8 @@
 local function wrap_session_in(session, resume)
 	if not resume then
 		session.handled_stanza_count = 0;
-		add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
 	end
+	add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
 
 	return session;
 end