Software /
code /
prosody
Annotate
core/features.lua @ 13110:d5f322dd424b 0.12
mod_s2s: Add event where resolver for s2sout can be tweaked
Could be used to implement custom connection methods (c.f. mod_onions)
without needing to duplicate the rest of route_to_new_session().
Adds a feature to enable detection since it can be difficult to detect
support for an event otherwise.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Aug 2022 03:26:32 +0200 |
parent | 12252:4bfe658415a0 |
child | 13111:8576f94ac90a |
rev | line source |
---|---|
12252
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 local set = require "util.set"; |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 return { |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 available = set.new{ |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 -- mod_bookmarks bundled |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 "mod_bookmarks"; |
13110
d5f322dd424b
mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents:
12252
diff
changeset
|
7 |
d5f322dd424b
mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents:
12252
diff
changeset
|
8 "s2sout-pre-connect-event"; |
12252
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 }; |
4bfe658415a0
core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 }; |