diff --git a/src/mod_configure.erl b/src/mod_configure.erl index a101ebf3c..0c7e75268 100644 --- a/src/mod_configure.erl +++ b/src/mod_configure.erl @@ -41,14 +41,11 @@ -include("logger.hrl"). -include("jlib.hrl"). - +-include("ejabberd_sm.hrl"). -include("adhoc.hrl"). -define(T(Lang, Text), translate:translate(Lang, Text)). -%% Copied from ejabberd_sm.erl --record(session, {sid, usr, us, priority, info}). - start(Host, _Opts) -> ejabberd_hooks:add(disco_local_items, Host, ?MODULE, get_local_items, 50), diff --git a/src/mod_muc.erl b/src/mod_muc.erl index a54055592..a64a00326 100644 --- a/src/mod_muc.erl +++ b/src/mod_muc.erl @@ -58,19 +58,7 @@ -include("logger.hrl"). -include("jlib.hrl"). - --record(muc_room, {name_host = {<<"">>, <<"">>} :: {binary(), binary()} | - {'_', binary()}, - opts = [] :: list() | '_'}). - --record(muc_online_room, - {name_host = {<<"">>, <<"">>} :: {binary(), binary()} | '$1' | - {'_', binary()} | '_', - pid = self() :: pid() | '$2' | '_' | '$1'}). - --record(muc_registered, - {us_host = {{<<"">>, <<"">>}, <<"">>} :: {{binary(), binary()}, binary()} | '$1', - nick = <<"">> :: binary()}). +-include("mod_muc.hrl"). -record(state, {host = <<"">> :: binary(), diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl index 195cc632c..b713e2e5f 100644 --- a/src/mod_muc_admin.erl +++ b/src/mod_muc_admin.erl @@ -26,13 +26,11 @@ -include("logger.hrl"). -include("jlib.hrl"). -include("mod_muc_room.hrl"). +-include("mod_muc.hrl"). -include("ejabberd_http.hrl"). -include("ejabberd_web_admin.hrl"). -include("ejabberd_commands.hrl"). -%% Copied from mod_muc/mod_muc.erl --record(muc_online_room, {name_host, pid}). - %%---------------------------- %% gen_mod %%---------------------------- diff --git a/src/mod_muc_log.erl b/src/mod_muc_log.erl index 0f4553189..4d8e3965c 100644 --- a/src/mod_muc_log.erl +++ b/src/mod_muc_log.erl @@ -47,13 +47,9 @@ -include("logger.hrl"). -include("jlib.hrl"). - +-include("mod_muc.hrl"). -include("mod_muc_room.hrl"). -%% Copied from mod_muc/mod_muc.erl --record(muc_online_room, {name_host = {<<>>, <<>>} :: {binary(), binary()}, - pid = self() :: pid()}). - -define(T(Text), translate:translate(Lang, Text)). -define(PROCNAME, ejabberd_mod_muc_log). -record(room, {jid, title, subject, subject_author, config}).