diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-08-28 09:23:24 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-08-28 09:23:24 +0100 |
commit | e5cad1e21d8d45fb12dc0f3d53767c7fb875c96c (patch) | |
tree | 29a8b368a2ebd36175100726d9d02b82b27edc8c /plugins/mod_compression.lua | |
parent | 5e9e11b7bc2634db4c175234f9ca9c91253bcaa8 (diff) | |
parent | 576e2186463c163cbd40ad90fc23e884ea817943 (diff) | |
download | prosody-e5cad1e21d8d45fb12dc0f3d53767c7fb875c96c.tar.gz prosody-e5cad1e21d8d45fb12dc0f3d53767c7fb875c96c.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins/mod_compression.lua')
-rw-r--r-- | plugins/mod_compression.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_compression.lua b/plugins/mod_compression.lua index 969172fd..da55e5bb 100644 --- a/plugins/mod_compression.lua +++ b/plugins/mod_compression.lua @@ -147,6 +147,12 @@ module:hook("stanza/http://jabber.org/protocol/compress:compressed", function(ev end end); +module:hook("stanza/http://jabber.org/protocol/compress:failure", function(event) + local err = event.stanza:get_child(); + (event.origin.log or module._log)("warn", "Compression setup failed (%s)", err and err.name or "unknown reason"); + return true; +end); + module:hook("stanza/http://jabber.org/protocol/compress:compress", function(event) local session, stanza = event.origin, event.stanza; |