mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/ejabberd_c2s.erl (process_presence_probe): Don't route a
presence probe to oneself (EJAB-498) SVN Revision: 1275
This commit is contained in:
parent
1649dec58e
commit
2c8cc8ae2d
@ -1,3 +1,8 @@
|
||||
2008-04-04 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/ejabberd_c2s.erl (process_presence_probe): Don't route a
|
||||
presence probe to oneself (EJAB-498)
|
||||
|
||||
2008-04-02 Badlop <badlop@process-one.net>
|
||||
|
||||
* src/ejabberd_config.erl: Add support to include additional
|
||||
|
@ -1419,7 +1419,13 @@ process_presence_probe(From, To, StateData) ->
|
||||
allow ->
|
||||
Pid=element(2, StateData#state.sid),
|
||||
ejabberd_hooks:run(presence_probe_hook, StateData#state.server, [From, To, Pid]),
|
||||
ejabberd_router:route(To, From, Packet)
|
||||
%% Don't route a presence probe to oneself
|
||||
case From == To of
|
||||
false ->
|
||||
ejabberd_router:route(To, From, Packet);
|
||||
true ->
|
||||
ok
|
||||
end
|
||||
end;
|
||||
Cond2 ->
|
||||
ejabberd_router:route(To, From,
|
||||
|
Loading…
Reference in New Issue
Block a user