Mercurial > prosody-hg
diff plugins/mod_compression.lua @ 6367:769a3577dd85
Merge 0.9->0.10
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 28 Aug 2014 09:23:24 +0100 |
| parents | 1607b03356ed 55fda5deb5d5 |
| children | 0f633160464c |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Wed Aug 27 13:00:04 2014 +0200 +++ b/plugins/mod_compression.lua Thu Aug 28 09:23:24 2014 +0100 @@ -147,6 +147,12 @@ 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;
