Skip to content

Commit

Permalink
When ignoring spectators join/left messages won't be shown
Browse files Browse the repository at this point in the history
  • Loading branch information
kubetz committed Jun 8, 2015
1 parent b77ab20 commit 8af51c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/battle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5394,11 +5394,15 @@ var Battle = (function () {
break;
case 'join':
case 'j':
this.log('<div class="chat"><small>' + Tools.escapeHTML(args[1]) + ' joined.</small></div>', preempt);
if (!this.ignoreSpects) {
this.log('<div class="chat"><small>' + Tools.escapeHTML(args[1]) + ' joined.</small></div>', preempt);
}
break;
case 'leave':
case 'l':
this.log('<div class="chat"><small>' + Tools.escapeHTML(args[1]) + ' left.</small></div>', preempt);
if (!this.ignoreSpects) {
this.log('<div class="chat"><small>' + Tools.escapeHTML(args[1]) + ' left.</small></div>', preempt);
}
break;
case 'J':
case 'L':
Expand Down

0 comments on commit 8af51c9

Please sign in to comment.