Diff

plugins/mod_compression.lua @ 1728:cb4c94b47d53

mod_compression: Fixed: Starting compression only worked before auth
author Waqas Hussain <waqas20@gmail.com>
date Wed, 02 Sep 2009 19:22:06 +0500
parent 1719:cf103398e643
child 2279:49bc4c7bdef8
line wrap: on
line diff
--- a/plugins/mod_compression.lua	Thu Aug 20 16:30:32 2009 +0100
+++ b/plugins/mod_compression.lua	Wed Sep 02 19:22:06 2009 +0500
@@ -35,7 +35,7 @@
 );
 
 -- TODO Support compression on S2S level too.
-module:add_handler({"c2s_unauthed", "c2s_authed"}, "compress", xmlns_compression_protocol,
+module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protocol,
 		function(session, stanza)
 			-- fail if we are already compressed
 			if session.compressed then