25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

* src/ejabberd_sm.erl: Removed check which denies resource to

receive its own presence

SVN Revision: 885
This commit is contained in:
Alexey Shchepin 2007-08-24 03:54:42 +00:00
parent 727a70c2cb
commit 38ad132ba2
2 changed files with 7 additions and 10 deletions

View File

@ -1,5 +1,8 @@
2007-08-23 Alexey Shchepin <alexey@process-one.net> 2007-08-23 Alexey Shchepin <alexey@process-one.net>
* src/ejabberd_sm.erl: Removed check which denies resource to
receive its own presence
* src/web/ejabberd_web_admin.erl: Added hooks to allow plugins to * src/web/ejabberd_web_admin.erl: Added hooks to allow plugins to
add their pages without modifying ejabberd_web_admin.erl (thanks add their pages without modifying ejabberd_web_admin.erl (thanks
to Badlop) to Badlop)

View File

@ -3,7 +3,6 @@
%%% Author : Alexey Shchepin <alexey@sevcom.net> %%% Author : Alexey Shchepin <alexey@sevcom.net>
%%% Purpose : Session manager %%% Purpose : Session manager
%%% Created : 24 Nov 2002 by Alexey Shchepin <alexey@sevcom.net> %%% Created : 24 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
%%% Id : $Id$
%%%---------------------------------------------------------------------- %%%----------------------------------------------------------------------
-module(ejabberd_sm). -module(ejabberd_sm).
@ -374,15 +373,10 @@ do_route(From, To, Packet) ->
LUser, LServer), LUser, LServer),
lists:foreach( lists:foreach(
fun({_, R}) -> fun({_, R}) ->
if LFrom /=
{LUser, LServer, R} ->
do_route( do_route(
From, From,
jlib:jid_replace_resource(To, R), jlib:jid_replace_resource(To, R),
Packet); Packet)
true ->
ok
end
end, PResources); end, PResources);
true -> true ->
ok ok