From 6340d6139712edb22f575f26784bb15a1495a62e Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 2 Oct 2023 10:54:24 +0200 Subject: [PATCH] Dcoument ejabberd version number in the new options --- src/ejabberd_admin.erl | 1 + src/ejabberd_options_doc.erl | 2 ++ src/mod_admin_extra.erl | 1 + src/mod_muc.erl | 2 +- src/mod_muc_occupantid.erl | 4 ++-- src/mod_private.erl | 2 +- src/mod_push.erl | 1 + 7 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index 6ead50ff9..a000beb54 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -118,6 +118,7 @@ get_commands_spec() -> args = [], result = {res, rescode}}, #ejabberd_commands{name = halt, tags = [server], desc = "Halt ejabberd abruptly with status code 1", + note = "added in 23.10", module = ejabberd, function = halt, args = [], result = {res, rescode}}, #ejabberd_commands{name = restart, tags = [server], diff --git a/src/ejabberd_options_doc.erl b/src/ejabberd_options_doc.erl index 5d6e20db5..a4938528b 100644 --- a/src/ejabberd_options_doc.erl +++ b/src/ejabberd_options_doc.erl @@ -397,6 +397,7 @@ doc() -> "to authenticate. The default value is 'sha'.")}}, {auth_external_user_exists_check, #{value => "true | false", + note => "added in 23.10", desc => ?T("Supplement check for user existence based on 'mod_last' data, for authentication " "methods that don't have a way to reliable tell if user exists (like is the case for " @@ -681,6 +682,7 @@ doc() -> "all options.")}}]}, {install_contrib_modules, #{value => "[Module, ...]", + note => "added in 23.10", desc => ?T("Modules to install from " "https://docs.ejabberd.im/developer/extending-ejabberd/modules/#ejabberd-contrib" diff --git a/src/mod_admin_extra.erl b/src/mod_admin_extra.erl index 04559e8d0..fa292ae38 100644 --- a/src/mod_admin_extra.erl +++ b/src/mod_admin_extra.erl @@ -578,6 +578,7 @@ get_commands_spec() -> longdesc = "Subscription can be: \"none\", \"from\", \"to\", \"both\". " "Pending can be: \"in\", \"out\", \"none\".", + note = "improved in 23.10", policy = user, module = ?MODULE, function = get_roster, args = [], diff --git a/src/mod_muc.erl b/src/mod_muc.erl index aadd77a35..0ea78870b 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -1471,7 +1471,7 @@ mod_doc() -> "modify that option.")}}, {access_register, #{value => ?T("AccessName"), - note => "improved in 23.xx", + note => "improved in 23.10", desc => ?T("This option specifies who is allowed to register nickname " "within the Multi-User Chat service and rooms. The default is 'all' for " diff --git a/src/mod_muc_occupantid.erl b/src/mod_muc_occupantid.erl index 647cb61a3..37ebfa574 100644 --- a/src/mod_muc_occupantid.erl +++ b/src/mod_muc_occupantid.erl @@ -27,7 +27,7 @@ -author('badlop@process-one.net'). --protocol({xep, 421, '0.1.0'}). +-protocol({xep, 421, '0.1.0', '23.10', "", ""}). -behaviour(gen_mod). @@ -121,7 +121,7 @@ mod_doc() -> "[XEP-0421: Anonymous unique occupant identifiers for MUCs]."), "", ?T("When the module is enabled, the feature is enabled " "in all semi-anonymous rooms."), "", - ?T("This module is available since ejabberd 23.xx.")] + ?T("This module is available since ejabberd 23.10.")] }. depends(_, _) -> diff --git a/src/mod_private.erl b/src/mod_private.erl index 1342964ef..53393832e 100644 --- a/src/mod_private.erl +++ b/src/mod_private.erl @@ -29,7 +29,7 @@ -protocol({xep, 49, '1.2'}). -protocol({xep, 411, '0.2.0', '18.12', "", ""}). --protocol({xep, 402, '1.1.3', '23.09', "", ""}). +-protocol({xep, 402, '1.1.3', '23.10', "", ""}). -behaviour(gen_mod). diff --git a/src/mod_push.erl b/src/mod_push.erl index 8a6901efb..d6cbd66d3 100644 --- a/src/mod_push.erl +++ b/src/mod_push.erl @@ -180,6 +180,7 @@ mod_doc() -> opts => [{notify_on, #{value => "messages | all", + note => "added in 23.10", desc => ?T("If this option is set to 'messages', notifications are " "generated only for actual chat messages with a body text "