Re: Hiding channel key from statusbar?

Marcus Rueckert <[email protected]> Thu, 30 Oct 2003 06:05:34 +0100
Newsgroups gmane.network.irc.irssi.devel
Message-ID <[email protected]>
On 2003-10-29 19:39:56 +0100, Dario Freni wrote:
> it seems there is no way to hide a channel key from the statusbar
> (without hiding entire statusbar, obviously). I'm not a paranoid, but it
> sounds quite annoying when chatting from a public place such as
> university... I was asking if it's possible to implement a variable to
> toggle the viewing of the key. I never seen irssi's code, with some
> advice from you maybe I can write a little patch.

file:
	~/.irssi/config
section:
	statusbar -> items 
find:
	window = "{sb $winref:$itemname{sbmode $M}}";
replace with:
	window = "{sb $winref:$itemname}";

and /reload after changing it with an text editor.


to easily change them you can make 2 items:

windowmode = "{sb $winref:$itemname{sbmode $M}}";

window = "{sb $winref:$itemname}";

and 2 aliases

disable mode item:
/alias dmi statusbar window remove windowmode; statusbar window add -before window_empty window 

enable mode item:
/alias emi statusbar window remove window; statusbar windowmode add -before window_empty window 

hope this helps

darix

p.s.: all untested. ;) but should work. :)

-- 
irssi - the client of the smart and beautiful people

              http://www.irssi.de/