mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/ejabberd_sm.erl: Removed check which denies resource to
receive its own presence SVN Revision: 885
This commit is contained in:
parent
727a70c2cb
commit
38ad132ba2
@ -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)
|
||||||
|
@ -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 /=
|
do_route(
|
||||||
{LUser, LServer, R} ->
|
From,
|
||||||
do_route(
|
jlib:jid_replace_resource(To, R),
|
||||||
From,
|
Packet)
|
||||||
jlib:jid_replace_resource(To, R),
|
|
||||||
Packet);
|
|
||||||
true ->
|
|
||||||
ok
|
|
||||||
end
|
|
||||||
end, PResources);
|
end, PResources);
|
||||||
true ->
|
true ->
|
||||||
ok
|
ok
|
||||||
|
Loading…
Reference in New Issue
Block a user