25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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,
<<"">>),
jlib:make_jid(LUser, LServer, <<"">>),
{broadcast, {privacy_list,
#xmlel{name = <<"broadcast">>, children =
[{privacy_list,
#userlist{name = Name,
list = []},
Name}}),
Name}]}),
{result, []};
_ -> {error, ?ERR_INTERNAL_SERVER_ERROR}
end;
@ -507,11 +508,12 @@ process_list_set(LUser, LServer, {value, Name}, Els) ->
ejabberd_sm:route(jlib:make_jid(LUser, LServer,
<<"">>),
jlib:make_jid(LUser, LServer, <<"">>),
{broadcast, {privacy_list,
#xmlel{name = <<"broadcast">>, children =
[{privacy_list,
#userlist{name = Name,
list = List,
needdb = NeedDb},
Name}}),
Name}]}),
{result, []};
_ -> {error, ?ERR_INTERNAL_SERVER_ERROR}
end