mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +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).
|
(StateData#state.sockmod):send(StateData#state.socket, Text).
|
||||||
|
|
||||||
send_element(StateData, El) when StateData#state.xml_socket ->
|
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,
|
(StateData#state.sockmod):send_xml(StateData#state.socket,
|
||||||
{xmlstreamelement, El});
|
{xmlstreamelement, El});
|
||||||
send_element(StateData, 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_text(StateData, xml:element_to_binary(El)).
|
||||||
|
|
||||||
send_header(StateData, Server, Version, Lang)
|
send_header(StateData, Server, Version, Lang)
|
||||||
|
Loading…
Reference in New Issue
Block a user