Software /
code /
prosody
Changeset
1670:23bb280c5eac
Remove unwanted spaces.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Wed, 12 Aug 2009 20:09:07 +0200 |
parents | 1669:b8eec163a823 |
children | 1671:d196ac213104 |
files | plugins/mod_compression.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_compression.lua Wed Aug 12 20:05:05 2009 +0200 +++ b/plugins/mod_compression.lua Wed Aug 12 20:09:07 2009 +0200 @@ -13,13 +13,13 @@ local compression_stream_feature = st.stanza("compression", {xmlns=xmlns_compression_feature}):tag("method"):text("zlib"):up(); -module:add_event_hook("stream-features", +module:add_event_hook("stream-features", function (session, features) features:add_child(compression_stream_feature); end ); -module:add_handler("c2s_unauthed", "compress", xmlns_compression_protocol, +module:add_handler("c2s_unauthed", "compress", xmlns_compression_protocol, function(session, stanza) -- checking if the compression method is supported local method = stanza:child_with_name("method")[1];