25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Clarify a little more room error string (thanks to Genghis Khan)

This commit is contained in:
Badlop 2016-01-08 13:13:30 +01:00
parent 00f502f6e9
commit c7b67ff00b

View File

@ -228,8 +228,8 @@ normal_state({route, From, <<"">>,
case is_user_online(From, StateData) of
true ->
ErrorText = <<"It is not allowed to send error messages to the"
" room. This participant (~s) sent an error "
"message (~s) and gets kicked from the room">>,
" room. The participant (~s) has sent an error "
"message (~s) and got kicked from the room">>,
NewState = expulse_participant(Packet, From, StateData,
translate:translate(Lang,
ErrorText)),
@ -516,8 +516,8 @@ normal_state({route, From, ToNick,
{expulse_sender, Reason} ->
?DEBUG(Reason, []),
ErrorText = <<"It is not allowed to send error messages to the"
" room. This participant (~s) sent an error "
"message (~s) and gets kicked from the room">>,
" room. The participant (~s) has sent an error "
"message (~s) and got kicked from the room">>,
NewState = expulse_participant(Packet, From, StateData,
translate:translate(Lang, ErrorText)),
{next_state, normal_state, NewState};
@ -1057,8 +1057,8 @@ process_presence(From, Nick,
remove_online_user(From, NewState, Reason);
<<"error">> ->
ErrorText = <<"It is not allowed to send error messages to the"
" room. This participant (~s) sent an error "
"message (~s) and gets kicked from the room">>,
" room. The participant (~s) has sent an error "
"message (~s) and got kicked from the room">>,
expulse_participant(Packet, From, StateData,
translate:translate(Lang,
ErrorText));