From d26d657b9556715b5d69dbff5971a2767db74bcc Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 20 Aug 2013 01:16:24 +0200 Subject: [PATCH] Fixed /difficulty --- src/API/ConsoleAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/ConsoleAPI.php b/src/API/ConsoleAPI.php index d76ecd7e5..0b7e2e976 100644 --- a/src/API/ConsoleAPI.php +++ b/src/API/ConsoleAPI.php @@ -97,7 +97,7 @@ class ConsoleAPI{ break; case "difficulty": $s = trim(array_shift($params)); - if($s == "" or (((int) $s) <= 3 and ((int) $s) >= 0)){ + if($s === "" or (((int) $s) > 3 and ((int) $s) < 0)){ $output .= "Usage: /difficulty <0|1|2|3>\n"; break; }