Handle new Msg.Type settings

This commit is contained in:
Garry Newman
2016-04-29 15:24:04 +01:00
parent 6de72eec86
commit 2ba4884cdc
+2 -2
View File
@@ -17,8 +17,8 @@ function ConsoleController( $scope, rconService, $timeout )
$scope.OnMessage = function( msg ) $scope.OnMessage = function( msg )
{ {
// Ignore rcon entries
if ( msg.Message.startsWith( "[rcon] " ) ) return; if ( msg.Message.startsWith( "[rcon] " ) ) return;
if ( msg.Type != "Message" && msg.Type != "Error" && msg.Type != "Warning" ) return;
msg.Class = msg.Type; msg.Class = msg.Type;
$scope.Output.push( msg ); $scope.Output.push( msg );
@@ -40,7 +40,7 @@ function ConsoleController( $scope, rconService, $timeout )
{ {
console.log( "GetHistory" ); console.log( "GetHistory" );
rconService.Request( "console.tail 256", $scope, function ( msg ) rconService.Request( "chat.tail 128", $scope, function ( msg )
{ {
var messages = JSON.parse( msg.Message ); var messages = JSON.parse( msg.Message );