25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Add new hook: c2s_post_auth_features

The c2s_post_auth_features hook can be used to extend the list of stream
features offered after authentication.
This commit is contained in:
Holger Weiss 2014-09-25 18:15:33 +02:00
parent ef89497d3f
commit 56175fef1b

View File

@ -493,6 +493,8 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
RosterVersioningFeature ++
StreamManagementFeature ++
ClientStateFeature ++
ejabberd_hooks:run_fold(c2s_post_auth_features,
Server, [], [Server]) ++
ejabberd_hooks:run_fold(c2s_stream_features,
Server, [], [Server]),
send_element(StateData,