Fix trailing slashes in MOTD breaks server list, close #153 (#154)

Fixes #4083
This commit is contained in:
Dylan K. Taylor 2016-12-27 21:36:44 +00:00
parent c556ec84a2
commit 4f4bdea104

View File

@ -170,7 +170,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{
$info = $this->server->getQueryInformation();
$this->interface->sendOption("name",
"MCPE;" . addcslashes($name, ";") . ";" .
"MCPE;" . rtrim(addcslashes($name, ";"), '\\') . ";" .
Info::CURRENT_PROTOCOL . ";" .
Info::MINECRAFT_VERSION_NETWORK . ";" .
$info->getPlayerCount() . ";" .