Merge pull request #401 from kubetz/spectators

When ignoring spectators join/left messages won't be shown
This commit is contained in:
Guangcong Luo
2015-06-08 16:55:50 +00:00

View File

@@ -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':