From 15c488f821f7217bb5dfb77bed8711eaa9807c5e Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 25 Jan 2014 17:14:26 +0100 Subject: [PATCH] logged mapadding --- application/core/Maps/MapManager.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index 9b69fa6b..a7a27b8f 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -581,11 +581,15 @@ class MapManager implements CallbackListener { if(!$update) { //Message - $this->maniaControl->chat->sendSuccess('$<' . $player->nickname . '$> added $<' . $mapInfo->name . '$>!'); + $message = '$<' . $player->nickname . '$> added $<' . $mapInfo->name . '$>!'; + $this->maniaControl->chat->sendSuccess($message); + $this->maniaControl->log($message, true); // Queue requested Map $this->maniaControl->mapManager->mapQueue->addMapToMapQueue($login, $mapInfo->uid); } else { - $this->maniaControl->chat->sendSuccess('$<' . $player->nickname . '$> updated $<' . $mapInfo->name . '$>!'); + $message = '$<' . $player->nickname . '$> updated $<' . $mapInfo->name . '$>!'; + $this->maniaControl->chat->sendSuccess($message); + $this->maniaControl->log($message, true); } } // TODO: add local map by filename