View | Details | Raw Unified | Return to bug 51260
Collapse All | Expand All

(-)a/src/mod_vcard.erl (-1 / +5 lines)
Lines 397-409 Link Here
397
	    %% Should not be here?
397
	    %% Should not be here?
398
	    Txt = ?T("Nodeprep has failed"),
398
	    Txt = ?T("Nodeprep has failed"),
399
	    {stop, xmpp:err_internal_server_error(Txt, Lang)};
399
	    {stop, xmpp:err_internal_server_error(Txt, Lang)};
400
	{error, not_implemented} ->
401
	    Txt = ?T("Updating the VCard is not supported by the VCard storage backend"),
402
	    {stop, xmpp:err_feature_not_implemented(Txt, Lang)};
400
	ok ->
403
	ok ->
401
	    IQ
404
	    IQ
402
    end;
405
    end;
403
vcard_iq_set(Acc) ->
406
vcard_iq_set(Acc) ->
404
    Acc.
407
    Acc.
405
408
406
-spec set_vcard(binary(), binary(), xmlel() | vcard_temp()) -> {error, badarg|binary()} | ok.
409
-spec set_vcard(binary(), binary(), xmlel() | vcard_temp()) ->
410
    {error, badarg | not_implemented | binary()} | ok.
407
set_vcard(User, LServer, VCARD) ->
411
set_vcard(User, LServer, VCARD) ->
408
    case jid:nodeprep(User) of
412
    case jid:nodeprep(User) of
409
	error ->
413
	error ->

Return to bug 51260