25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix privacy list broadcast internal stanza after binarization

This commit is contained in:
Badlop 2013-03-22 13:57:45 +01:00
parent 2c6b12228a
commit d901aa982b

View File

@ -491,10 +491,11 @@ process_list_set(LUser, LServer, {value, Name}, Els) ->
ejabberd_sm:route(jlib:make_jid(LUser, LServer, ejabberd_sm:route(jlib:make_jid(LUser, LServer,
<<"">>), <<"">>),
jlib:make_jid(LUser, LServer, <<"">>), jlib:make_jid(LUser, LServer, <<"">>),
{broadcast, {privacy_list, #xmlel{name = <<"broadcast">>, children =
[{privacy_list,
#userlist{name = Name, #userlist{name = Name,
list = []}, list = []},
Name}}), Name}]}),
{result, []}; {result, []};
_ -> {error, ?ERR_INTERNAL_SERVER_ERROR} _ -> {error, ?ERR_INTERNAL_SERVER_ERROR}
end; end;
@ -507,11 +508,12 @@ process_list_set(LUser, LServer, {value, Name}, Els) ->
ejabberd_sm:route(jlib:make_jid(LUser, LServer, ejabberd_sm:route(jlib:make_jid(LUser, LServer,
<<"">>), <<"">>),
jlib:make_jid(LUser, LServer, <<"">>), jlib:make_jid(LUser, LServer, <<"">>),
{broadcast, {privacy_list, #xmlel{name = <<"broadcast">>, children =
[{privacy_list,
#userlist{name = Name, #userlist{name = Name,
list = List, list = List,
needdb = NeedDb}, needdb = NeedDb},
Name}}), Name}]}),
{result, []}; {result, []};
_ -> {error, ?ERR_INTERNAL_SERVER_ERROR} _ -> {error, ?ERR_INTERNAL_SERVER_ERROR}
end end