some fixes

This commit is contained in:
kremsy
2014-01-16 19:49:36 +01:00
committed by Steffen Schröder
parent fd2f9faa6c
commit 28e4a57a78
2 changed files with 7 additions and 5 deletions

View File

@ -367,6 +367,11 @@ class PlayerActions {
return;
}
if($target->isFakePlayer()) {
$this->maniaControl->chat->sendError('It is not possible to Ban a bot', $admin->login);
return;
}
$success = $this->maniaControl->client->ban($target->login, $message);
if(!$success) {
$this->maniaControl->chat->sendError('Error occurred: ' . $this->maniaControl->getClientErrorText(), $admin->login);