mod_compression: Don't succeed after indicating a failure.

vault/0.11
Waqas Hussain 16 years ago
parent 84ece3aca6
commit b01e95ae14
  1. 1
      plugins/mod_compression.lua

@ -43,6 +43,7 @@ module:add_handler({"c2s_unauthed", "c2s"}, "compress", xmlns_compression_protoc
local error_st = st.stanza("failure", {xmlns=xmlns_compression_protocol}):tag("unsupported-method");
session.send(error_st);
session.log("warn", "Tried to establish another compression layer.");
return;
end
-- checking if the compression method is supported

Loading…
Cancel
Save