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>
* 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
add their pages without modifying ejabberd_web_admin.erl (thanks
to Badlop)

View File

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