aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_compression.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-18 15:59:58 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-18 15:59:58 +0100
commit8612c162a4dd306e0268fbe28085b78e31ae80dc (patch)
treec590e396b27d6b586b12162182279755de0ee59d /plugins/mod_compression.lua
parentb1b269edddf23648835a433996c3e128cdfe6735 (diff)
parent8be5cdc4e3a49a9cbcecd8edea342d4c05bacedf (diff)
downloadprosody-8612c162a4dd306e0268fbe28085b78e31ae80dc.tar.gz
prosody-8612c162a4dd306e0268fbe28085b78e31ae80dc.zip
Merge with waqas
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r--plugins/mod_compression.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua
index 4ff10d5a..c07edb05 100644
--- a/plugins/mod_compression.lua
+++ b/plugins/mod_compression.lua
@@ -50,7 +50,7 @@ module:add_handler("c2s_unauthed", "compress", xmlns_compression_protocol,
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("setup-failed");
session.send(error_st);
session:log("error", "Failed to create zlib.deflate filter.");
- module:log("error", inflate_stream);
+ module:log("error", deflate_stream);
return
end
@@ -88,10 +88,10 @@ module:add_handler("c2s_unauthed", "compress", xmlns_compression_protocol,
if status == false then
session:close({
condition = "undefined-condition";
- text = compressed;
+ text = decompressed;
extra = st.stanza("failure", {xmlns="http://jabber.org/protocol/compress"}):tag("processing-failed");
});
- module:log("error", compressed);
+ module:log("error", decompressed);
return;
end
old_data(conn, decompressed);