Annotate

core/features.lua @ 13532:9970d333a63f

mod_pubsub: Use error registry This is what util.error was made for! This replaces the custom error stanza builder with common code in util.stanza that knows enough about util.error and namespaced errors. Some awkwardness remains in the way util.pubsub returns conflicting form fields.
author Kim Alvefur <zash@zash.se>
date Sun, 27 Oct 2024 15:18:24 +0100
parent 13455:2a001cd7f99a
child 13583:e77ef9a4604f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12972
ead41e25ebc0 core: Prefix module imports with prosody namespace
Kim Alvefur <zash@zash.se>
parents: 12957
diff changeset
1 local set = require "prosody.util.set";
12252
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";
13438
0a0dd2505baa features: Add mod_server_info
Matthew Wild <mwild1@gmail.com>
parents: 13425
diff changeset
7 -- mod_server_info bundled
0a0dd2505baa features: Add mod_server_info
Matthew Wild <mwild1@gmail.com>
parents: 13425
diff changeset
8 "mod_server_info";
12655
a5a0783e9241 features: Add "permissions" feature for role-auth
Matthew Wild <mwild1@gmail.com>
parents: 12252
diff changeset
9 -- Roles, module.may and per-session authz
a5a0783e9241 features: Add "permissions" feature for role-auth
Matthew Wild <mwild1@gmail.com>
parents: 12252
diff changeset
10 "permissions";
12955
d32926897ca4 core.features: Add feature for prosody.loader
Kim Alvefur <zash@zash.se>
parents: 12655
diff changeset
11 -- prosody.* namespace
d32926897ca4 core.features: Add feature for prosody.loader
Kim Alvefur <zash@zash.se>
parents: 12655
diff changeset
12 "loader";
12957
e625ad5a9889 features: Add "keyval+"
Matthew Wild <mwild1@gmail.com>
parents: 12955
diff changeset
13 -- "keyval+" store
e625ad5a9889 features: Add "keyval+"
Matthew Wild <mwild1@gmail.com>
parents: 12955
diff changeset
14 "keyval+";
13110
d5f322dd424b mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents: 12252
diff changeset
15
d5f322dd424b mod_s2s: Add event where resolver for s2sout can be tweaked
Kim Alvefur <zash@zash.se>
parents: 12252
diff changeset
16 "s2sout-pre-connect-event";
13170
082c7d856e61 core, plugins: Split prosody:user role into prosody:{guest,registered,member}
Matthew Wild <mwild1@gmail.com>
parents: 13111
diff changeset
17
082c7d856e61 core, plugins: Split prosody:user role into prosody:{guest,registered,member}
Matthew Wild <mwild1@gmail.com>
parents: 13111
diff changeset
18 -- prosody:guest, prosody:registered, prosody:member
082c7d856e61 core, plugins: Split prosody:user role into prosody:{guest,registered,member}
Matthew Wild <mwild1@gmail.com>
parents: 13111
diff changeset
19 "split-user-roles";
13201
65fb0d7a2312 moduleapi: Add enum config option method
Kim Alvefur <zash@zash.se>
parents: 13170
diff changeset
20
65fb0d7a2312 moduleapi: Add enum config option method
Kim Alvefur <zash@zash.se>
parents: 13170
diff changeset
21 -- new moduleapi methods
65fb0d7a2312 moduleapi: Add enum config option method
Kim Alvefur <zash@zash.se>
parents: 13170
diff changeset
22 "getopt-enum";
13203
aa6c2692a4be core.moduleapi: Allow specifying an acceptable range for number options
Kim Alvefur <zash@zash.se>
parents: 13201
diff changeset
23 "getopt-interval";
13204
c9ef35fab0b1 core.moduleapi: Add :get_option_period for parsing time intervals
Kim Alvefur <zash@zash.se>
parents: 13203
diff changeset
24 "getopt-period";
13211
4d4f9e42bcf8 moduleapi: Add :get_option_integer()
Kim Alvefur <zash@zash.se>
parents: 13204
diff changeset
25 "getopt-integer";
13425
3cebb30e7503 features: Add module-ready (for commit e20949a10118)
Matthew Wild <mwild1@gmail.com>
parents: 13211
diff changeset
26
3cebb30e7503 features: Add module-ready (for commit e20949a10118)
Matthew Wild <mwild1@gmail.com>
parents: 13211
diff changeset
27 -- new module.ready()
3cebb30e7503 features: Add module-ready (for commit e20949a10118)
Matthew Wild <mwild1@gmail.com>
parents: 13211
diff changeset
28 "module-ready";
13455
2a001cd7f99a core.features: Advertise that events are fired for SIGUSR1/2
Kim Alvefur <zash@zash.se>
parents: 13438
diff changeset
29
2a001cd7f99a core.features: Advertise that events are fired for SIGUSR1/2
Kim Alvefur <zash@zash.se>
parents: 13438
diff changeset
30 -- SIGUSR1 and 2 events
2a001cd7f99a core.features: Advertise that events are fired for SIGUSR1/2
Kim Alvefur <zash@zash.se>
parents: 13438
diff changeset
31 "signal-events";
12252
4bfe658415a0 core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
32 };
4bfe658415a0 core.features: New module to track and expose the features supported by Prosody
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
33 };