* src/ejabberd_c2s.erl: user_send_packet hook now called on all packets including presence packets (EJAB-634)

SVN Revision: 1341
This commit is contained in:
Mickaël Rémond 2008-05-22 10:19:35 +00:00
parent c4366a54cc
commit cf42ea0bcb
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-05-22 Mickael Remond <mremond@process-one.net>
* src/ejabberd_c2s.erl: user_send_packet hook now called on all packets
including presence packets (EJAB-634)
2008-05-22 Badlop <badlop@process-one.net>
* README: R12 support: remove compilation warning (EJAB-630)

View File

@ -903,6 +903,10 @@ session_established({xmlstreamelement, El}, StateData) ->
Server,
NewEl,
[User, Server]),
ejabberd_hooks:run(
user_send_packet,
Server,
[FromJID, ToJID, PresenceEl]),
case ToJID of
#jid{user = User,
server = Server,