-- checking if the compression method is supported
local method = stanza:child_with_name("method")[1];
if method == "zlib" then
-- checking if the compression method is supported
local method = stanza:child_with_name("method")[1];
if method == "zlib" then
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
(session.sends2s or session.send)(error_st);
end
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
(session.sends2s or session.send)(error_st);
end