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
1 changed files with 2 additions and 0 deletions

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,