Update mod_multicast to allow compile
This commit is contained in:
parent
18c9d87206
commit
036076d373
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
|
-include("logger.hrl").
|
||||||
|
|
||||||
-define(SETS, gb_sets).
|
-define(SETS, gb_sets).
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
|
-include("logger.hrl").
|
||||||
|
|
||||||
-record(route_multicast, {domain, pid}).
|
-record(route_multicast, {domain, pid}).
|
||||||
-record(state, {}).
|
-record(state, {}).
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
|
-include("logger.hrl").
|
||||||
|
|
||||||
-define(MAX_USERS_DEFAULT, 200).
|
-define(MAX_USERS_DEFAULT, 200).
|
||||||
-define(MAX_USERS_DEFAULT_LIST,
|
-define(MAX_USERS_DEFAULT_LIST,
|
||||||
|
@ -1199,7 +1200,7 @@ filter_presence({xmlelement, "presence", Attrs, Els}) ->
|
||||||
{xmlelement, _Name1, Attrs1, _Els1} ->
|
{xmlelement, _Name1, Attrs1, _Els1} ->
|
||||||
XMLNS = xml:get_attr_s("xmlns", Attrs1),
|
XMLNS = xml:get_attr_s("xmlns", Attrs1),
|
||||||
case XMLNS of
|
case XMLNS of
|
||||||
?NS_MUC ++ _ ->
|
"http://jabber.org/protocol/muc" ++ _ ->
|
||||||
false;
|
false;
|
||||||
_ ->
|
_ ->
|
||||||
true
|
true
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
-include("jlib.hrl").
|
-include("jlib.hrl").
|
||||||
|
-include("logger.hrl").
|
||||||
|
|
||||||
-record(state, {lserver, lservice, access, service_limits}).
|
-record(state, {lserver, lservice, access, service_limits}).
|
||||||
|
|
||||||
|
@ -70,9 +71,6 @@
|
||||||
-define(VERSION_MULTICAST, "$Revision: 440 $ ").
|
-define(VERSION_MULTICAST, "$Revision: 440 $ ").
|
||||||
-define(PROCNAME, ejabberd_mod_multicast).
|
-define(PROCNAME, ejabberd_mod_multicast).
|
||||||
|
|
||||||
%% TODO: move this line to jlib.hrl
|
|
||||||
-define(NS_ADDRESS, "http://jabber.org/protocol/address").
|
|
||||||
|
|
||||||
-define(PURGE_PROCNAME, ejabberd_mod_multicast_purgeloop).
|
-define(PURGE_PROCNAME, ejabberd_mod_multicast_purgeloop).
|
||||||
|
|
||||||
%% TODO: allow configuration instead of hard-coding
|
%% TODO: allow configuration instead of hard-coding
|
||||||
|
|
Loading…
Reference in New Issue