25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix events broadcasting via C2S

This commit is contained in:
Evgeniy Khramtsov 2014-07-22 19:42:49 +04:00
parent 9ff3ce8bd1
commit 3d3a4f7543

View File

@ -1693,7 +1693,7 @@ handle_info({broadcast, Type, From, Packet}, StateName, StateData) ->
Recipients = ejabberd_hooks:run_fold(
c2s_broadcast_recipients, StateData#state.server,
[],
[StateData, Type, From, Packet]),
[StateData#state.server, StateData, Type, From, Packet]),
lists:foreach(
fun(USR) ->
ejabberd_router:route(