-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),
-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(),
-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
%%----------------------------
-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}).