on *:active:#:{
if $server {
set %nick.count $nickcount($chan)
set %chan.mode $chan($chan).mode
set %topic $chan($chan).topic
.timertitlebar 0 2 titlebar $channelbar($chan)
}
}
alias -l channelbar {
set %topic.display $iif(!%topic.display || %topic.display > $len(%topic),1,$calc(%topic.display + %topic.display.length))
set %display.length $calc($len($me) + $len(%chan.mode) + $len(%nick.count))
set %topic.display.length $calc(100 - %display.length)
return $me %chan.mode %nick.count %topic
}
alias -l nickcount { return $+($nick($1,0,a,hvr) Ops,$chr(44),$nick($1,0,a,ovr) Half-ops,$chr(44),$nick($1,0,a,ohr) Voices,$chr(44),$nick($1,0,a,ohv) Regular) }