diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-08-28 12:05:18 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-08-28 12:05:18 +0100 |
commit | 656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3 (patch) | |
tree | f9b41c73e3cda1b1f3ffe63a3921967eea4a20d6 /plugins/mod_compression.lua | |
parent | bf66f0049f2e7682ed6354388db92a2b25ea67b6 (diff) | |
parent | 878efeecd5030048b33121b05c6cf402f860ca1d (diff) | |
download | prosody-656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3.tar.gz prosody-656d194bd1e0022605ab0a5b66da7ee2c5a3a1d3.zip |
Merge 0.10->trunk
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; |