Skip to content

Instantly share code, notes, and snippets.

@wodim
Created April 6, 2014 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wodim/10003982 to your computer and use it in GitHub Desktop.
Save wodim/10003982 to your computer and use it in GitHub Desktop.
use Irssi;
use strict;
use vars qw($VERSION %IRSSI);
$VERSION = "1.0";
%IRSSI = (
authors => "",
contact => "",
name => "",
description => "",
license => "",
url => "",
);
sub public_handler {
my ($server, $msg, $nick, $address, $target) = @_;
if ($msg =~ m/\b$server->{nick}\b/i) {
$target->set_level(MSGLEVEL_HILIGHT);
}
}
Irssi::signal_add("message public", "public_handler");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment