message=tra("{0} appeared from {1} to {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name);
}else{
message=tra("{0} appeared to channel {1}",data.client.client_name,data.channel_to.channel_name);
}
break;
caseViewReasonId.VREASON_MOVED:
if(data.channel_from){
message=tra("{0} appeared from {1} to {2}, moved by {3}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);
}else{
message=tra("{0} appeared to {1}, moved by {2}",data.client.client_name,data.channel_to.channel_name,data.invoker.client_name);
}
break;
caseViewReasonId.VREASON_CHANNEL_KICK:
if(data.channel_from){
message=tra("{0} appeared from {1} to {2}, kicked by {3}{4}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
}else{
message=tra("{0} appeared to {1}, kicked by {2}{3}",data.client.client_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
message=tra("{0} appeared from {1} to your channel {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name);
}else{
message=tra("{0} appeared to your channel {1}",data.client.client_name,data.channel_to.channel_name);
}
break;
caseViewReasonId.VREASON_MOVED:
if(data.channel_from){
message=tra("{0} appeared from {1} to your channel {2}, moved by {3}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);
}else{
message=tra("{0} appeared to your channel {1}, moved by {2}",data.client.client_name,data.channel_to.channel_name,data.invoker.client_name);
}
break;
caseViewReasonId.VREASON_CHANNEL_KICK:
if(data.channel_from){
message=tra("{0} appeared from {1} to your channel {2}, kicked by {3}{4}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
}else{
message=tra("{0} appeared to your channel {1}, kicked by {2}{3}",data.client.client_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
message=tra("{0} was moved from channel {1} to {2} by {3}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);
break;
caseViewReasonId.VREASON_USER_ACTION:
message=tra("{0} switched from channel {1} to {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name);
break;
caseViewReasonId.VREASON_CHANNEL_KICK:
message=tra("{0} got kicked from channel {1} to {2} by {3}{4}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
message=tra("You have been moved by {3} from channel {1} to {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);
break;
caseViewReasonId.VREASON_USER_ACTION:
/* no need to notify here */
return;
caseViewReasonId.VREASON_CHANNEL_KICK:
message=tra("You got kicked out of the channel {1} to channel {2} by {3}{4}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
message=tra("{0} disappeared from {1} to {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name);
break;
caseViewReasonId.VREASON_SERVER_LEFT:
message=tra("{0} left the server{1}",data.client.client_name,data.message?" ("+data.message+")":"");
break;
caseViewReasonId.VREASON_SERVER_KICK:
message=tra("{0} was kicked from the server by {1}.{2}",data.client,data.invoker.client_name,data.message?" ("+data.message+")":"");
break;
caseViewReasonId.VREASON_CHANNEL_KICK:
message=tra("{0} was kicked from channel {1} by {2}.{3}",data.client,data.channel_from.channel_name,data.invoker.client_name,data.message?" ("+data.message+")":"");
break;
caseViewReasonId.VREASON_BAN:
letduration="permanently";
if(data.ban_time)
duration=tr("for")+" "+formatDate(data.ban_time);
message=tra("{0} was banned {1} by {2}.{3}",data.client.client_name,duration,data.invoker.client_name,data.message?" ("+data.message+")":"");
message=tra("{0} disappeared from {1} to {2}, moved by {3}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);
message=tra("{0} disappeared from your channel {1} to {2}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name);
break;
caseViewReasonId.VREASON_MOVED:
message=tra("{0} disappeared from your channel {1} to {2}, moved by {3}",data.client.client_name,data.channel_from.channel_name,data.channel_to.channel_name,data.invoker.client_name);