chat added send information to admins

This commit is contained in:
kremsy 2014-08-23 12:59:08 +02:00
parent 30fcc219d3
commit afa15217a2

View File

@ -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
*