diff mod_smacks/mod_smacks.lua @ 2122:3f788f18cc10

mod_smacks: Adjust filter priorities to avoid conflict with mod_websocket
author Kim Alvefur <zash@zash.se>
date Thu, 17 Mar 2016 22:42:11 +0100
parents ea95637cf041
children f1be45c9a742
line wrap: on
line diff
--- a/mod_smacks/mod_smacks.lua	Thu Mar 17 18:13:28 2016 +0100
+++ b/mod_smacks/mod_smacks.lua	Thu Mar 17 22:42:11 2016 +0100
@@ -115,7 +115,7 @@
 		session.last_acknowledged_stanza = 0;
 	end
 
-	add_filter(session, "stanzas/out", outgoing_stanza_filter, -1000);
+	add_filter(session, "stanzas/out", outgoing_stanza_filter, -999);
 
 	local session_close = session.close;
 	function session.close(...)
@@ -132,7 +132,7 @@
 	if not resume then
 		session.handled_stanza_count = 0;
 	end
-	add_filter(session, "stanzas/in", count_incoming_stanzas, 1000);
+	add_filter(session, "stanzas/in", count_incoming_stanzas, 999);
 
 	return session;
 end