# HG changeset patch # User Tobias Markmann # Date 1259697842 -3600 # Node ID 9c5941198719ed45af59b276afad37ceaf80a07b # Parent c6bed51c673310b92c32fe7bd85c14c47651fba0 mod_compression: Declaring the de-/compression pipes as local. diff -r c6bed51c6733 -r 9c5941198719 plugins/mod_compression.lua --- a/plugins/mod_compression.lua Tue Dec 01 20:59:42 2009 +0100 +++ b/plugins/mod_compression.lua Tue Dec 01 21:04:02 2009 +0100 @@ -139,10 +139,10 @@ function(session ,stanza) session.log("debug", "Activating compression...") -- create deflate and inflate streams - deflate_stream = get_deflate_stream(session); + local deflate_stream = get_deflate_stream(session); if not deflate_stream then return end - inflate_stream = get_inflate_stream(session); + local inflate_stream = get_inflate_stream(session); if not inflate_stream then return end -- setup compression for session.w @@ -180,10 +180,10 @@ session.log("info", method.." compression selected."); -- create deflate and inflate streams - deflate_stream = get_deflate_stream(session); + local deflate_stream = get_deflate_stream(session); if not deflate_stream then return end - inflate_stream = get_inflate_stream(session); + local inflate_stream = get_inflate_stream(session); if not inflate_stream then return end (session.sends2s or session.send)(st.stanza("compressed", {xmlns=xmlns_compression_protocol}));