# HG changeset patch # User Tobias Markmann # Date 1250100547 -7200 # Node ID 23bb280c5eac1a80bf182ea0b628875143804049 # Parent b8eec163a8230f583bb1b7bab35c4b0713db60bb Remove unwanted spaces. diff -r b8eec163a823 -r 23bb280c5eac plugins/mod_compression.lua --- 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];