25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +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( Recipients = ejabberd_hooks:run_fold(
c2s_broadcast_recipients, StateData#state.server, c2s_broadcast_recipients, StateData#state.server,
[], [],
[StateData, Type, From, Packet]), [StateData#state.server, StateData, Type, From, Packet]),
lists:foreach( lists:foreach(
fun(USR) -> fun(USR) ->
ejabberd_router:route( ejabberd_router:route(