aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 660d9052..46d2d087 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -45,7 +45,7 @@ module:add_handler("c2s_unauthed", "compress", xmlns_compression_protocol,
session:reset_stream();
-- create deflate and inflate streams
- local deflate_stream = zlib.deflate(9);
+ local deflate_stream = zlib.deflate(compression_level);
local inflate_stream = zlib.inflate();
-- setup compression for session.w