mod_compression: Define db (dialback) namespace in stream header.
authorTobias Markmann <tm@ayena.de>
Mon, 30 Nov 2009 23:10:47 +0000 (00:10 +0100)
committerTobias Markmann <tm@ayena.de>
Mon, 30 Nov 2009 23:10:47 +0000 (00:10 +0100)
plugins/mod_compression.lua

index e160faedab8f6bdcf7046f8b14775747dadd9e6b..3372bd0e917d138c0652587ec3b639ce4ac16279 100644 (file)
@@ -161,7 +161,7 @@ module:add_handler({"s2sout_unauthed", "s2sout"}, "compressed", xmlns_compressio
                                end;
                        session:reset_stream();
                        local default_stream_attr = {xmlns = "jabber:server", ["xmlns:stream"] = "http://etherx.jabber.org/streams",
-                                                                               version = "1.0", to = session.to_host, from = session.from_host};
+                                                                               ["xmlns:db"] = 'jabber:server:dialback', version = "1.0", to = session.to_host, from = session.from_host};
                        session.sends2s("<?xml version='1.0'?>");
                        session.sends2s(st.stanza("stream:stream", default_stream_attr):top_tag());                     
                        session.compressed = true;