mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
mod_muc_room: New muc_disco_info_extras event, useful for mod_muc_webchat_url (#3041)
This commit is contained in:
parent
1668cde93f
commit
7723951c05
1 changed files with 5 additions and 1 deletions
|
@ -4588,8 +4588,12 @@ iq_disco_info_extras(Lang, StateData, Static) ->
|
||||||
_ ->
|
_ ->
|
||||||
Fs4
|
Fs4
|
||||||
end,
|
end,
|
||||||
|
Fs6 = ejabberd_hooks:run_fold(muc_disco_info_extras,
|
||||||
|
StateData#state.server_host,
|
||||||
|
Fs5,
|
||||||
|
[StateData]),
|
||||||
#xdata{type = result,
|
#xdata{type = result,
|
||||||
fields = muc_roominfo:encode(Fs5, Lang)}.
|
fields = muc_roominfo:encode(Fs6, Lang)}.
|
||||||
|
|
||||||
-spec process_iq_disco_items(jid(), iq(), state()) ->
|
-spec process_iq_disco_items(jid(), iq(), state()) ->
|
||||||
{error, stanza_error()} | {result, disco_items()}.
|
{error, stanza_error()} | {result, disco_items()}.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue