From afa15217a285d5603e98d28af68450f31b9d52d7 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 23 Aug 2014 12:59:08 +0200 Subject: [PATCH] chat added send information to admins --- application/core/Chat.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/application/core/Chat.php b/application/core/Chat.php index f490c431..3dd1249f 100644 --- a/application/core/Chat.php +++ b/application/core/Chat.php @@ -149,6 +149,20 @@ class Chat { return $this->sendChat($format . $message, $login, $prefix); } + /** + * Sends a Information Message to all connected Admins + * + * @param string $message + * @param int $minLevel + * @param bool|string $prefix + * @return bool + */ + public function sendInformationToAdmins($message, $minLevel = AuthenticationManager::AUTH_LEVEL_MODERATOR, $prefix = true) { + $format = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_FORMAT_INFORMATION); + return $this->sendMessageToAdmins($format . $message, $minLevel, $prefix); + } + + /** * Sends a Success Message to all connected Admins *