diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-06-14 14:00:47 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-06-14 14:00:47 +0300 |
commit | fd8e07af4789be362a61755ea47f216baeb64989 (patch) | |
tree | 0ac0a7a779fd27e79e940519441161dc0c4dfd5f /src/mod_roster.erl | |
parent | Log modules startup (diff) |
Get rid of ejabberd.hrl header
The header consisted of too many unrelated stuff and macros misuse.
Some stuff is moved into scram.hrl and type_compat.hrl.
All macros have been replaced with the corresponding function calls.
TODO: probably type_compat.hrl is not even needed anymore since
we support only Erlang >= OTP 17.5
Diffstat (limited to 'src/mod_roster.erl')
-rw-r--r-- | src/mod_roster.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl index d35b7dc9..3375220d 100644 --- a/src/mod_roster.erl +++ b/src/mod_roster.erl @@ -52,7 +52,6 @@ mod_opt_type/1, mod_options/1, set_roster/1, del_roster/3, depends/2]). --include("ejabberd.hrl"). -include("logger.hrl"). -include("xmpp.hrl"). @@ -980,7 +979,7 @@ build_contact_jid_td(RosterJID) -> of {<<"">>, _} -> <<"">>; {CUser, CServer} -> - case lists:member(CServer, ?MYHOSTS) of + case lists:member(CServer, ejabberd_config:get_myhosts()) of false -> <<"">>; true -> <<"/admin/server/", CServer/binary, "/user/", |