You need to change this line:
var %sb.title = $sb.break $sb.title
To this:
var %sb.title = $sb.break $sb.title($1)
I also added this line at the end (after the current last line) of the /sb.start alias. This makes the titlebar update immediately when the active channel is switched.
sb.disp $1
And just as a cosmetic thing, since titlebar space is limited, you could abbreviate the "ops, halfops" part to use symbols:
alias -l nickcount { return $nick($1,0,a,hvr) $+ @, $nick($1,0,a,ovr) $+ $(%,0), $nick($1,0,a,ohr) $+ +, $nick($1,0,a,ohv) $+ ΓΈ }
One more thing, you should stop the channel topic scroll when a non-channel window is chosen, such as Status Window. Maybe set some other data to scroll (usermodes, channel list, etc).
-genius_at_work