mod_compat_dialback/mod_compat_dialback.lua
changeset 1904 41ebdb331b94
child 1920 56f6a642fc67
equal deleted inserted replaced
1903:ceb594a14a18 1904:41ebdb331b94
       
     1 -- Prosody IM
       
     2 -- Copyright (C) 2008-2010 Matthew Wild
       
     3 -- Copyright (C) 2008-2010 Waqas Hussain
       
     4 --
       
     5 -- This project is MIT/X11 licensed. Please see the
       
     6 -- COPYING file in the source package for more information.
       
     7 --
       
     8 
       
     9 module:set_global();
       
    10 
       
    11 module:global("s2s-stream-features-legacy", function (data)
       
    12 	if data.origin.type == "s2sin_unauthed" then
       
    13 		data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):up();
       
    14 	end
       
    15 end);