Skip to content

Commit

Permalink
Chat: Format neutrals (machina)
Browse files Browse the repository at this point in the history
chat refactor removed neutral css class
from old code

23edee7
  • Loading branch information
McBen authored Oct 22, 2024
1 parent 93473f1 commit 73fdd45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/code/comm.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,9 +783,10 @@ function renderMsgRow(data) {
var timeCell = IITC.comm.renderTimeCell(data.time, timeClass);

var nickClasses = ['nickname'];
if (data.player.team === window.TEAM_ENL || data.player.team === window.TEAM_RES) {
if (window.TEAM_TO_CSS[data.player.team]) {
nickClasses.push(window.TEAM_TO_CSS[data.player.team]);
}

// highlight things said/done by the player in a unique colour
// (similar to @player mentions from others in the chat text itself)
if (data.player.name === window.PLAYER.nickname) {
Expand Down

0 comments on commit 73fdd45

Please sign in to comment.