From 919c9d6fb1bea9f19551a7d5d7204a769a621a3e Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 11 Jan 2020 20:34:11 +0100 Subject: mod_sip: Omit documentation when SIP is disabled Don't generate the actual mod_sip documentation if ejabberd is built without SIP support. --- src/mod_sip.erl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mod_sip.erl b/src/mod_sip.erl index f81ab006b..6a63b2b05 100644 --- a/src/mod_sip.erl +++ b/src/mod_sip.erl @@ -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. -- cgit v1.2.3