mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Limited length of messages to 100
This commit is contained in:
parent
1935e2bbf7
commit
f80326b714
1 changed files with 1 additions and 1 deletions
|
|
@ -1304,7 +1304,7 @@ class Player{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$message = $data["message"];
|
$message = $data["message"];
|
||||||
if(trim($data["message"]) != "" and preg_match('#[^\\x20-\\xff]#', $message) == 0){
|
if(trim($data["message"]) != "" and strlen($data["message"]) <= 100 and preg_match('#[^\\x20-\\xff]#', $message) == 0){
|
||||||
if($message{0} === "/"){ //Command
|
if($message{0} === "/"){ //Command
|
||||||
$this->server->api->console->run(substr($message, 1), $this);
|
$this->server->api->console->run(substr($message, 1), $this);
|
||||||
}else{
|
}else{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue