projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MUC: Fixed: Unavilable presence was not being broadcasted for banned users in some...
[prosody.git]
/
plugins
/
mod_dialback.lua
diff --git
a/plugins/mod_dialback.lua
b/plugins/mod_dialback.lua
index 30313188a82ad9d0eebfbdfe78e88e691d7e2e90..189aeb363c5f30a95ade745334dcac28500038ac 100644
(file)
--- a/
plugins/mod_dialback.lua
+++ b/
plugins/mod_dialback.lua
@@
-1,6
+1,6
@@
-- Prosody IM
-- Prosody IM
--- Copyright (C) 2008-20
09
Matthew Wild
--- Copyright (C) 2008-20
09
Waqas Hussain
+-- Copyright (C) 2008-20
10
Matthew Wild
+-- Copyright (C) 2008-20
10
Waqas Hussain
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
--
-- 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);
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);