mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't hide result of mod_*:set_* calls
This commit is contained in:
parent
cb2b927085
commit
36891175ec
@ -1152,8 +1152,7 @@ set_vcard_content(User, Server, Data, SomeContent) ->
|
|||||||
end,
|
end,
|
||||||
%% Build new vcard
|
%% Build new vcard
|
||||||
SubEl = {xmlel, <<"vCard">>, [{<<"xmlns">>,<<"vcard-temp">>}], A4},
|
SubEl = {xmlel, <<"vCard">>, [{<<"xmlns">>,<<"vcard-temp">>}], A4},
|
||||||
mod_vcard:set_vcard(User, jid:nameprep(Server), SubEl),
|
mod_vcard:set_vcard(User, jid:nameprep(Server), SubEl).
|
||||||
ok.
|
|
||||||
|
|
||||||
take_vcard_tel(TelType, [{xmlel, <<"TEL">>, _, SubEls}=OldEl | OldEls], NewEls, Taken) ->
|
take_vcard_tel(TelType, [{xmlel, <<"TEL">>, _, SubEls}=OldEl | OldEls], NewEls, Taken) ->
|
||||||
{Taken2, NewEls2} = case lists:keymember(TelType, 2, SubEls) of
|
{Taken2, NewEls2} = case lists:keymember(TelType, 2, SubEls) of
|
||||||
@ -1390,8 +1389,7 @@ private_set(Username, Host, ElementString) ->
|
|||||||
private_set2(Username, Host, Xml) ->
|
private_set2(Username, Host, Xml) ->
|
||||||
NS = fxml:get_tag_attr_s(<<"xmlns">>, Xml),
|
NS = fxml:get_tag_attr_s(<<"xmlns">>, Xml),
|
||||||
mod_private:set_data(jid:nodeprep(Username), jid:nameprep(Host),
|
mod_private:set_data(jid:nodeprep(Username), jid:nameprep(Host),
|
||||||
[{NS, Xml}]),
|
[{NS, Xml}]).
|
||||||
ok.
|
|
||||||
|
|
||||||
%%%
|
%%%
|
||||||
%%% Shared Roster Groups
|
%%% Shared Roster Groups
|
||||||
|
Loading…
Reference in New Issue
Block a user