blob: 78db3f6d1770275880838e3c74f110e6345aa0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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',
};
use constant ESCAPE => "\x{03}";
use constant GREY => '14';
Irssi::signal_add('message public', sub {
my ($server, $text, $nick, @rest) = @_;
if ($nick eq 'test-3kj469y5h') {
Irssi::signal_continue(
$server,
ESCAPE . GREY . $text . ESCAPE,
$nick,
@rest,
);
}
});
|