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
1 changed files with 6 additions and 6 deletions

View File

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