Update mod_multicast to allow compile

This commit is contained in:
Badlop 2014-03-04 17:06:30 +01:00
parent 18c9d87206
commit 036076d373
4 changed files with 5 additions and 4 deletions

View File

@ -37,6 +37,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
-define(SETS, gb_sets).

View File

@ -26,6 +26,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
-record(route_multicast, {domain, pid}).
-record(state, {}).

View File

@ -29,6 +29,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
-define(MAX_USERS_DEFAULT, 200).
-define(MAX_USERS_DEFAULT_LIST,
@ -1199,7 +1200,7 @@ filter_presence({xmlelement, "presence", Attrs, Els}) ->
{xmlelement, _Name1, Attrs1, _Els1} ->
XMLNS = xml:get_attr_s("xmlns", Attrs1),
case XMLNS of
?NS_MUC ++ _ ->
"http://jabber.org/protocol/muc" ++ _ ->
false;
_ ->
true

View File

@ -30,6 +30,7 @@
-include("ejabberd.hrl").
-include("jlib.hrl").
-include("logger.hrl").
-record(state, {lserver, lservice, access, service_limits}).
@ -70,9 +71,6 @@
-define(VERSION_MULTICAST, "$Revision: 440 $ ").
-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).
%% TODO: allow configuration instead of hard-coding