diff --git a/js/console.js b/js/console.js index c45a971..535c135 100644 --- a/js/console.js +++ b/js/console.js @@ -17,8 +17,8 @@ function ConsoleController( $scope, rconService, $timeout ) $scope.OnMessage = function( msg ) { - // Ignore rcon entries if ( msg.Message.startsWith( "[rcon] " ) ) return; + if ( msg.Type != "Message" && msg.Type != "Error" && msg.Type != "Warning" ) return; msg.Class = msg.Type; $scope.Output.push( msg ); @@ -40,7 +40,7 @@ function ConsoleController( $scope, rconService, $timeout ) { 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 );