Software /
code /
prosody-modules
Comparison
mod_compat_dialback/mod_compat_dialback.lua @ 1916:56f6a642fc67
mod_compat_dialback: Use correct API for hooking events (Thanks sol, Lance)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 20 Oct 2015 21:51:10 +0200 |
parent | 1900:41ebdb331b94 |
comparison
equal
deleted
inserted
replaced
1915:5e65c91c07c4 | 1916:56f6a642fc67 |
---|---|
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 module:set_global(); | 9 module:set_global(); |
10 | 10 |
11 module:global("s2s-stream-features-legacy", function (data) | 11 module:hook("s2s-stream-features-legacy", function (data) |
12 if data.origin.type == "s2sin_unauthed" then | 12 if data.origin.type == "s2sin_unauthed" then |
13 data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):up(); | 13 data.features:tag("dialback", { xmlns='urn:xmpp:features:dialback' }):up(); |
14 end | 14 end |
15 end); | 15 end); |