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