25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Avoid badfun in multicast/6

This commit is contained in:
Evgeny Khramtsov 2018-12-07 21:34:49 +03:00
parent 0e954da3fa
commit a5ac1d15e7

View File

@ -578,7 +578,8 @@ notify_participant_left(Mod, LServer, To, ID) ->
Msg = #message{from = jid:remove_resource(To), Msg = #message{from = jid:remove_resource(To),
id = p1_rand:get_string(), id = p1_rand:get_string(),
sub_els = [Event]}, 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(). -spec make_id(jid(), binary()) -> binary().
make_id(JID, Key) -> make_id(JID, Key) ->