always trigger cancel callback

This commit is contained in:
Steffen Schröder 2014-07-27 22:27:39 +02:00
parent 5ee5f698ab
commit 494139bacb

View File

@ -168,10 +168,11 @@ class Commands implements CallbackListener, CommandListener, ManialinkPageAnswer
if ($this->maniaControl->client->cancelVote()) { if ($this->maniaControl->client->cancelVote()) {
$this->maniaControl->chat->sendInformation($player->getEscapedNickname() . ' cancelled the Vote!'); $this->maniaControl->chat->sendInformation($player->getEscapedNickname() . ' cancelled the Vote!');
$this->maniaControl->callbackManager->triggerCallback(self::CB_VOTE_CANCELLED, $player);
} else { } else {
$this->maniaControl->chat->sendInformation("There's no vote running currently!", $player); $this->maniaControl->chat->sendInformation("There's no vote running currently!", $player);
} }
$this->maniaControl->callbackManager->triggerCallback(self::CB_VOTE_CANCELLED, $player);
} }