Update Ignore Spectators

It now only ignores no-rank and voices, so moderators and players
aren't ignored.
This commit is contained in:
Guangcong Luo
2015-05-06 03:05:11 -04:00
parent dde66cefa4
commit 7e57295ef2

View File

@@ -5328,7 +5328,7 @@ var Battle = (function () {
case 'chat':
case 'c':
name = args[1];
if (this.ignoreSpects && !this.getSide(name).battle) break;
if (this.ignoreSpects && (name.charAt(0) === ' ' || name.charAt(0) === '+')) break;
if (window.app && app.ignore && app.ignore[toUserid(name)]) break;
args.shift();
args.shift();