From: Evgeny Khramtsov Date: Fri, 7 Dec 2018 18:34:49 +0000 (+0300) Subject: Avoid badfun in multicast/6 X-Git-Tag: 19.02~23^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5ac1d15e75468e1d8e8d8157b531ebac52798ee;p=ejabberd Avoid badfun in multicast/6 --- diff --git a/src/mod_mix.erl b/src/mod_mix.erl index 641d4e3ab..5625beac1 100644 --- a/src/mod_mix.erl +++ b/src/mod_mix.erl @@ -578,7 +578,8 @@ notify_participant_left(Mod, LServer, To, ID) -> Msg = #message{from = jid:remove_resource(To), id = p1_rand:get_string(), sub_els = [Event]}, - multicast(Mod, LServer, Chan, Host, ?NS_MIX_NODES_PARTICIPANTS, Msg). + multicast(Mod, LServer, Chan, Host, ?NS_MIX_NODES_PARTICIPANTS, + fun(_) -> Msg end). -spec make_id(jid(), binary()) -> binary(). make_id(JID, Key) ->