From 2c81518c5d3c514b94e1bf50aa96e67aec4e80d1 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 9 Apr 2013 17:08:44 +0200 Subject: [PATCH] OP players are automatically whitelisted --- src/API/BanAPI.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/API/BanAPI.php b/src/API/BanAPI.php index fe26360ef..7a347acc5 100644 --- a/src/API/BanAPI.php +++ b/src/API/BanAPI.php @@ -314,6 +314,8 @@ class BanAPI{ public function inWhitelist($username){ $username = strtolower($username); + if($this->isOp($username)){ + return true; if($this->server->api->dhandle("api.ban.whitelist.check", $ip) === false){ return true; }elseif($this->whitelist->exists($username)){