mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +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:
parent
6531fbb0f3
commit
919c9d6fb1
@ -40,6 +40,8 @@ depends(_, _) ->
|
||||
[].
|
||||
mod_options(_) ->
|
||||
[].
|
||||
mod_doc() ->
|
||||
#{desc => [?T("SIP support has not been enabled.")]}.
|
||||
-else.
|
||||
-behaviour(gen_mod).
|
||||
-behaviour(esip).
|
||||
@ -374,8 +376,6 @@ mod_options(Host) ->
|
||||
{routes, [Route]},
|
||||
{via, []}].
|
||||
|
||||
-endif.
|
||||
|
||||
mod_doc() ->
|
||||
#{desc =>
|
||||
[?T("This module adds SIP proxy/registrar support "
|
||||
@ -451,3 +451,5 @@ mod_doc() ->
|
||||
" - tcp://sip-tcp.example.com:5060",
|
||||
" - udp://sip-udp.example.com:5060",
|
||||
" ..."]}.
|
||||
|
||||
-endif.
|
||||
|
Loading…
Reference in New Issue
Block a user