Software /
code /
prosody-modules
Comparison
mod_compat_dialback/mod_compat_dialback.lua @ 1900:41ebdb331b94
mod_compat_dialback: Workaround for Dialback with servers that violate RFC 6120 § 4.7.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Oct 2015 15:39:23 +0200 |
child | 1916:56f6a642fc67 |
comparison
equal
deleted
inserted
replaced
1899:ceb594a14a18 | 1900: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); |