Fix undefined guid error when trying to kick as a nonhosting client in the gamesetup following 9c4344a940.

This was SVN commit r19006.
This commit is contained in:
elexis 2016-11-27 23:16:59 +00:00
parent 57efd31a19
commit b87fe17ac6

View File

@ -1786,7 +1786,7 @@ function colorizePlayernameByGUID(guid, username = "")
function addChatMessage(msg)
{
if (msg.text)
if (msg.type != "system" && msg.text)
{
let userName = g_PlayerAssignments[Engine.GetPlayerGUID() || "local"].name;