Skip to content

Instantly share code, notes, and snippets.

@x1a0
Created April 26, 2013 15:49
Show Gist options
  • Save x1a0/5468282 to your computer and use it in GitHub Desktop.
Save x1a0/5468282 to your computer and use it in GitHub Desktop.
Irssi script: display /WHO and /WHOIS reply in current channel window.
sub level {
Irssi::window_find_name("(status)")->command("^window level $_[0]crap");
}
# https://www.alien.net.au/irc/irc2numerics.html
# /WHOIS
Irssi::signal_add_first("event 311", sub { level("-") } );
Irssi::signal_add_last("event 369", sub { level("+") } );
Irssi::signal_add_last("event 318", sub { level("+") } );
# /WHO
Irssi::signal_add_first("event 354", sub { level("-") } );
Irssi::signal_add_first("event 352", sub { level("-") } );
Irssi::signal_add_last("event 315", sub { level("+") } );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment