summaryrefslogtreecommitdiff
path: root/src/ejabberd_piefxis.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-06-14 14:00:47 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-06-14 14:00:47 +0300
commitfd8e07af4789be362a61755ea47f216baeb64989 (patch)
tree0ac0a7a779fd27e79e940519441161dc0c4dfd5f /src/ejabberd_piefxis.erl
parentLog 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/ejabberd_piefxis.erl')
-rw-r--r--src/ejabberd_piefxis.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ejabberd_piefxis.erl b/src/ejabberd_piefxis.erl
index afb0e1a0..20d84b40 100644
--- a/src/ejabberd_piefxis.erl
+++ b/src/ejabberd_piefxis.erl
@@ -40,7 +40,7 @@
-define(CHUNK_SIZE, 1024*20). %20k
--include("ejabberd.hrl").
+-include("scram.hrl").
-include("logger.hrl").
-include("xmpp.hrl").
-include("mod_privacy.hrl").
@@ -92,7 +92,7 @@ import_file(FileName, State) ->
-spec export_server(binary()) -> any().
export_server(Dir) ->
- export_hosts(?MYHOSTS, Dir).
+ export_hosts(ejabberd_config:get_myhosts(), Dir).
-spec export_host(binary(), binary()) -> any().
export_host(Dir, Host) ->