mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
* src/ejabberd_s2s.erl: Fixed spelling
SVN Revision: 746
This commit is contained in:
parent
829f30e63b
commit
3d7090f62c
@ -1,5 +1,7 @@
|
||||
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
|
||||
connection in case of race condition
|
||||
|
||||
@ -23,9 +25,9 @@
|
||||
* src/configure.ac: autoconf improvements (thanks to Tony Finch)
|
||||
(EJAB-204).
|
||||
* src/aclocal.m4: Likewise.
|
||||
|
||||
|
||||
* 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).
|
||||
* src/doc/guide.tex: Likewise.
|
||||
|
||||
|
@ -269,17 +269,17 @@ is_service(From, To) ->
|
||||
false;
|
||||
_ ->
|
||||
LDstDomain = To#jid.lserver,
|
||||
P = fun(Domain) -> is_subdmomain(LDstDomain, Domain) end,
|
||||
P = fun(Domain) -> is_subdomain(LDstDomain, Domain) end,
|
||||
lists:any(P, ?MYHOSTS)
|
||||
end.
|
||||
|
||||
%%--------------------------------------------------------------------
|
||||
%% Function: is_subdmomain(Domain1, Domain2) -> true | false
|
||||
%% Function: is_subdomain(Domain1, Domain2) -> true | false
|
||||
%% Description: Return true if Domain1 (a string representing an
|
||||
%% internet domain name) is a subdomain (or the same domain) of
|
||||
%% Domain2
|
||||
%% --------------------------------------------------------------------
|
||||
is_subdmomain(Domain1, Domain2) ->
|
||||
is_subdomain(Domain1, Domain2) ->
|
||||
lists:suffix(string:tokens(Domain2, "."), string:tokens(Domain1, ".")).
|
||||
|
||||
send_element(Pid, El) ->
|
||||
|
Loading…
Reference in New Issue
Block a user