mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
copied feature_inspect_packet hook from iphone svn repo
This commit is contained in:
parent
c10e43f95f
commit
a5166f3946
@ -1678,9 +1678,19 @@ send_text(StateData, Text) ->
|
||||
(StateData#state.sockmod):send(StateData#state.socket, Text).
|
||||
|
||||
send_element(StateData, El) when StateData#state.xml_socket ->
|
||||
ejabberd_hooks:run(feature_inspect_packet,
|
||||
StateData#state.server,
|
||||
[StateData#state.jid,
|
||||
StateData#state.server,
|
||||
StateData#state.pres_last, El]),
|
||||
(StateData#state.sockmod):send_xml(StateData#state.socket,
|
||||
{xmlstreamelement, El});
|
||||
send_element(StateData, El) ->
|
||||
ejabberd_hooks:run(feature_inspect_packet,
|
||||
StateData#state.server,
|
||||
[StateData#state.jid,
|
||||
StateData#state.server,
|
||||
StateData#state.pres_last, El]),
|
||||
send_text(StateData, xml:element_to_binary(El)).
|
||||
|
||||
send_header(StateData, Server, Version, Lang)
|
||||
|
Loading…
Reference in New Issue
Block a user