mod_tls: Remove extraneous flag to starttls() for s2sout connecections
[prosody.git] / plugins / mod_dialback.lua
index 30313188a82ad9d0eebfbdfe78e88e691d7e2e90..189aeb363c5f30a95ade745334dcac28500038ac 100644 (file)
@@ -1,6 +1,6 @@
 -- Prosody IM
--- Copyright (C) 2008-2009 Matthew Wild
--- Copyright (C) 2008-2009 Waqas Hussain
+-- Copyright (C) 2008-2010 Matthew Wild
+-- Copyright (C) 2008-2010 Waqas Hussain
 -- 
 -- This project is MIT/X11 licensed. Please see the
 -- COPYING file in the source package for more information.
@@ -120,3 +120,8 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza)
                s2s_initiate_dialback(origin);
                return true;
        end, 100);
+
+-- Offer dialback to incoming hosts
+module:hook("s2s-stream-features", function (data)
+               data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):tag("optional"):up():up();
+       end);