fix: anonymous chatter names were not displayed

main
hecht 13 years ago
parent 8e8a4b4471
commit c7853f8678

@ -55,8 +55,11 @@ function sendChatMessage($user,$text, $usergroups){
// Nun pruefen, ob der User ein spammer ist
becomeSpammer($user['id'],$user['nickname'],$text);
$nick = displayUserNameByID($user['id']);
if(strpos($user['nickname'], 'anon_') === 0) {
$nick = $user['nickname'];
} else {
$nick = displayUserNameByID($user['id']);
}
if($text != '' && !is_null($text)){
mysql_query('INSERT ag_chat SET nachricht=\''.$text.'\', user=\''.$nick.'\'');
}
@ -133,4 +136,4 @@ function sendInviteToClanMessage($leaderid, $userid) {
}
?>
?>

Loading…
Cancel
Save