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 *