From d0af61f488ecc01fad82ecdaf2e1e57cff21a282 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 29 Jan 2018 00:02:15 +0100 Subject: [PATCH] mod_caps: Fix indentation --- src/mod_caps.erl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mod_caps.erl b/src/mod_caps.erl index 7d26178fa..946e2dd82 100644 --- a/src/mod_caps.erl +++ b/src/mod_caps.erl @@ -145,16 +145,15 @@ user_receive_packet(Acc) -> Acc. -spec caps_stream_features([xmpp_element()], binary()) -> [xmpp_element()]. - caps_stream_features(Acc, MyHost) -> case gen_mod:is_loaded(MyHost, ?MODULE) of true -> - case make_my_disco_hash(MyHost) of + case make_my_disco_hash(MyHost) of <<"">> -> Acc; - Hash -> + Hash -> [#caps{hash = <<"sha-1">>, node = ?EJABBERD_URI, - version = Hash}|Acc] + version = Hash} | Acc] end; false -> Acc