From: Tobias Koch Date: Mon, 12 Feb 2018 14:12:46 +0000 (+0100) Subject: Dialyzer checks always failed because the return value of the function 'get_subscribe... X-Git-Tag: 18.03~79^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9188a7b838d9bc73cdc791bff32d60691a083460;p=ejabberd Dialyzer checks always failed because the return value of the function 'get_subscribed_rooms' in 'mod_muc_sql' is different to the defined value in 'mod_muc'. Fix was to update the return value in 'mod_muc.erl'. --- diff --git a/src/mod_muc.erl b/src/mod_muc.erl index acfbb90a0..debda4cab 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -107,8 +107,7 @@ -callback unregister_online_user(binary(), ljid(), binary(), binary()) -> any(). -callback count_online_rooms_by_user(binary(), binary(), binary()) -> non_neg_integer(). -callback get_online_rooms_by_user(binary(), binary(), binary()) -> [{binary(), binary()}]. --callback get_subscribed_rooms(binary(), binary(), jid()) -> - {ok, [{ljid(), binary(), [binary()]}]} | {error, any()}. +-callback get_subscribed_rooms(binary(), binary(), jid()) -> [ljid()] | []. %%==================================================================== %% API @@ -727,7 +726,7 @@ iq_get_register_info(ServerHost, Host, From, Lang) -> instructions = [Inst], fields = Fields}, #register{nick = Nick, registered = Registered, - instructions = + instructions = translate:translate( Lang, <<"You need a client that supports x:data " "to register the nickname">>),