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);
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.'\'');
}

Loading…
Cancel
Save