From a373a581c5bf40383679d0ca47156aad869a2401 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 11 Feb 2014 16:57:45 +0100 Subject: [PATCH] Better fix for #1201 (case-insensitive) --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 966f9cf5b..35f392314 100644 --- a/src/Player.php +++ b/src/Player.php @@ -1311,7 +1311,7 @@ class Player{ $this->close("Incorrect protocol #".$packet->protocol1, false); return; } - if(preg_match('#[^a-zA-Z0-9_]#', $packet->username) > 0 or $packet->username === ""){ + if(preg_match('#[^a-zA-Z0-9_]#', $this->username) > 0 or $this->username === "" or $this->iusername === "rcon" or $this->iusername === "console"){ $this->close("Bad username", false); return; }