Colorize playernames in the kick/ban chat notification, refs #3241.

This was SVN commit r18391.
This commit is contained in:
elexis
2016-06-16 17:13:02 +00:00
parent 450973a624
commit a874b3c1c3
2 changed files with 71 additions and 16 deletions
+2 -1
View File
@@ -711,7 +711,8 @@ bool CNetClient::OnKicked(void *context, CFsmEvent* event)
client->GetScriptInterface().Eval("({})", &msg);
client->GetScriptInterface().SetProperty(msg, "username", message->m_Name);
client->GetScriptInterface().SetProperty(msg, "type", message->m_Ban ? std::string("banned") : std::string("kicked"));
client->GetScriptInterface().SetProperty(msg, "type", CStr("kicked"));
client->GetScriptInterface().SetProperty(msg, "banned", message->m_Ban != 0);
client->PushGuiMessage(msg);
return true;