25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix error text for message bounces

This commit is contained in:
Holger Weiss 2016-04-25 00:53:48 +02:00
parent a37cf33358
commit 65ad70d7dc

View File

@ -500,7 +500,7 @@ do_route(From, To, #xmlel{} = Packet) ->
<<"headline">> -> route_message(From, To, Packet, headline);
<<"error">> -> ok;
<<"groupchat">> ->
ErrTxt = <<"Incorrect message type">>,
ErrTxt = <<"User session not found">>,
Err = jlib:make_error_reply(
Packet, ?ERRT_SERVICE_UNAVAILABLE(Lang, ErrTxt)),
ejabberd_router:route(To, From, Err);
@ -523,7 +523,7 @@ do_route(From, To, #xmlel{} = Packet) ->
<<"headline">> -> ok;
<<"error">> -> ok;
_ ->
ErrTxt = <<"Incorrect message type">>,
ErrTxt = <<"User session not found">>,
Err = jlib:make_error_reply(
Packet,
?ERRT_SERVICE_UNAVAILABLE(Lang, ErrTxt)),