diff options
author | Alexey Shchepin <alexey@process-one.net> | 2007-08-24 03:54:42 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2007-08-24 03:54:42 +0000 |
commit | 38ad132ba226ee0984fb8a22186f35808f52d30b (patch) | |
tree | 4bc02b427c464f390da38648fd2ab47154a22188 /src | |
parent | * src/web/ejabberd_web_admin.erl: Added hooks to allow plugins to (diff) |
* src/ejabberd_sm.erl: Removed check which denies resource to
receive its own presence
SVN Revision: 885
Diffstat (limited to 'src')
-rw-r--r-- | src/ejabberd_sm.erl | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 91be5d97a..d7d573d6b 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -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 + do_route( + From, + jlib:jid_replace_resource(To, R), + Packet) end, PResources); true -> ok |