25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

mod_sip: Omit documentation when SIP is disabled

Don't generate the actual mod_sip documentation if ejabberd is built
without SIP support.
This commit is contained in:
Holger Weiss 2020-01-11 20:34:11 +01:00
parent 6531fbb0f3
commit 919c9d6fb1

View File

@ -40,6 +40,8 @@ depends(_, _) ->
[]. [].
mod_options(_) -> mod_options(_) ->
[]. [].
mod_doc() ->
#{desc => [?T("SIP support has not been enabled.")]}.
-else. -else.
-behaviour(gen_mod). -behaviour(gen_mod).
-behaviour(esip). -behaviour(esip).
@ -374,8 +376,6 @@ mod_options(Host) ->
{routes, [Route]}, {routes, [Route]},
{via, []}]. {via, []}].
-endif.
mod_doc() -> mod_doc() ->
#{desc => #{desc =>
[?T("This module adds SIP proxy/registrar support " [?T("This module adds SIP proxy/registrar support "
@ -451,3 +451,5 @@ mod_doc() ->
" - tcp://sip-tcp.example.com:5060", " - tcp://sip-tcp.example.com:5060",
" - udp://sip-udp.example.com:5060", " - udp://sip-udp.example.com:5060",
" ..."]}. " ..."]}.
-endif.