Fixed things

This commit is contained in:
Shoghi Cervantes Pueyo
2013-05-15 18:38:20 +02:00
parent cef4347a02
commit 991436993f
3 changed files with 16 additions and 7 deletions

View File

@ -326,7 +326,7 @@ class BanAPI{
$username = strtolower($username);
if($this->isOp($username)){
return true;
}elseif($this->server->api->dhandle("api.ban.whitelist.check", $ip) === false){
}elseif($this->server->api->dhandle("api.ban.whitelist.check", $username) === false){
return true;
}elseif($this->whitelist->exists($username)){
return true;