Hello!, i found one interesing snippet around on google for show or hide channel window. I need to add this snippet channel menu like a Hide/Unhide, but in one clicked not turn on turn off, with two menu.
can anyone help about me about this. code is here
; hides the switchbar icon from one or more channel if you need more room but don't want to part any channel.
; usage: /hide #chan | /unhide #chan | /showhides | $showhides
alias hide {
if (!$1) { return }
if ($1 ischan) { set %hidechans $remove(%hidechans,$1) $1 | window -h $1 }
}
alias showhides {
var %i = 1,%total = $numtok(%hidechans,32),%return
while (%i <= %total) {
var %chan = $gettok(%hidechans,%i,32)
var %return = %return $iif($me ison %chan, $+ %chan $+ ,%chan)
inc %i
}
if ($isid) { return %return }
else { echo -a %return }
}
alias unhide {
if (!$1) { return }
if ($1 ischan) { set %hidechans $remove(%hidechans,$1) }
if ($me ison $1) { window -w $1 }
}