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

* src/ejabberd_s2s.erl: Fixed spelling

SVN Revision: 746
This commit is contained in:
Alexey Shchepin 2007-03-17 22:53:42 +00:00
parent 829f30e63b
commit 3d7090f62c
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,7 @@
2007-03-18 Alexey Shchepin <alexey@sevcom.net> 2007-03-18 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_s2s.erl: Fixed spelling
* src/ejabberd_s2s.erl: Don't start s2s process for existing * src/ejabberd_s2s.erl: Don't start s2s process for existing
connection in case of race condition connection in case of race condition
@ -23,9 +25,9 @@
* src/configure.ac: autoconf improvements (thanks to Tony Finch) * src/configure.ac: autoconf improvements (thanks to Tony Finch)
(EJAB-204). (EJAB-204).
* src/aclocal.m4: Likewise. * src/aclocal.m4: Likewise.
* src/odbc/ejabberd_odbc.erl: ejabberd admin can now choose the * src/odbc/ejabberd_odbc.erl: ejabberd admin can now choose the
relational database port to user from ejabberd configuration file relational database port to use from ejabberd configuration file
(EJAB-195). (EJAB-195).
* src/doc/guide.tex: Likewise. * src/doc/guide.tex: Likewise.

View File

@ -269,17 +269,17 @@ is_service(From, To) ->
false; false;
_ -> _ ->
LDstDomain = To#jid.lserver, LDstDomain = To#jid.lserver,
P = fun(Domain) -> is_subdmomain(LDstDomain, Domain) end, P = fun(Domain) -> is_subdomain(LDstDomain, Domain) end,
lists:any(P, ?MYHOSTS) lists:any(P, ?MYHOSTS)
end. end.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
%% Function: is_subdmomain(Domain1, Domain2) -> true | false %% Function: is_subdomain(Domain1, Domain2) -> true | false
%% Description: Return true if Domain1 (a string representing an %% Description: Return true if Domain1 (a string representing an
%% internet domain name) is a subdomain (or the same domain) of %% internet domain name) is a subdomain (or the same domain) of
%% Domain2 %% Domain2
%% -------------------------------------------------------------------- %% --------------------------------------------------------------------
is_subdmomain(Domain1, Domain2) -> is_subdomain(Domain1, Domain2) ->
lists:suffix(string:tokens(Domain2, "."), string:tokens(Domain1, ".")). lists:suffix(string:tokens(Domain2, "."), string:tokens(Domain1, ".")).
send_element(Pid, El) -> send_element(Pid, El) ->