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_irc.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_irc.erl')
-rw-r--r-- | src/mod_irc.erl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mod_irc.erl b/src/mod_irc.erl index 254f05b58..42e516b82 100644 --- a/src/mod_irc.erl +++ b/src/mod_irc.erl @@ -41,7 +41,6 @@ handle_info/2, terminate/2, code_change/3, mod_opt_type/1, mod_options/1, depends/2]). --include("ejabberd.hrl"). -include("logger.hrl"). -include("xmpp.hrl"). -include("mod_irc.hrl"). @@ -437,10 +436,9 @@ iq_disco(ServerHost, Node, Lang) -> end. iq_get_vcard(Lang) -> - Desc = translate:translate(Lang, <<"ejabberd IRC module">>), #vcard_temp{fn = <<"ejabberd/mod_irc">>, - url = ?EJABBERD_URI, - desc = <<Desc/binary, $\n, ?COPYRIGHT>>}. + url = ejabberd_config:get_uri(), + desc = misc:get_descr(Lang, <<"ejabberd IRC module">>)}. command_items(ServerHost, Host, Lang) -> lists:map(fun({Node, Name, _Function}) -> |