Don't assume 2nd-operator subject means first-operator is a stream

(imported from commit e60ec8387dd843fe504fd5d82808ffd42470518a)
This commit is contained in:
Leo Franchi 2013-06-06 10:52:32 -04:00
parent 164c4d2c1b
commit bfd2952876
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function make_tab_data() {
operand = ops[1][1];
hashed = hashchange.operators_to_hash(ops.slice(0, 2));
if (operator === 'subject') {
if (operator === 'subject' && ops[0][0] === 'stream') {
// Colorize text of stream name properly
var stream = ops[0][1];
tabs[tabs.length - 1].cls += ' ' + subs.get_color_class(subs.get_color(stream));