From 2ba4884cdce9b04af6ba9945ebc90a7ef577f821 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Fri, 29 Apr 2016 15:24:04 +0100 Subject: [PATCH] Handle new Msg.Type settings --- js/console.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );