Handle new Msg.Type settings
This commit is contained in:
+2
-2
@@ -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 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user