aboutsummaryrefslogtreecommitdiffstats
path: root/dimpid.pl
blob: ca32c6d72266dba1c9358b8d3bf6fb90bc2c57fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use strict;

use Irssi;

our $VERSION = '1.00';
our %IRSSI = {
	authors     => 'Teddy Wing',
	contact     => 'irssi@teddywing.com',
	name        => 'Dimpid',
	description => 'Dim messages from certain nicks',
	license     => 'GPL',
};


Irssi::signal_add('message public', sub {
	my ($server, $text, $nick, @rest) = @_;

	if ($nick eq 'test-3kj469y5h') {
		Irssi::signal_continue($server, "\x{03}14" . $text . "\x{03}", $nick, @rest);
	}
});