1
mirror of git://git.acid.vegas/archive.git synced 2024-11-15 12:46:41 +00:00
archive/bots/blackhole/honeypot/.irssi/scripts/autorun/killreconnect.pl

12 lines
313 B
Perl
Raw Normal View History

2023-09-12 19:47:16 +00:00
use strict;
use Irssi;
Irssi::signal_add('event error', sub { Irssi::signal_stop(); });
Irssi::signal_add('event kill', sub {
my ($server, $args, $nick, $address) = @_;
my $reason = $args;
$reason =~ s/^.*://g;
Irssi::print("You were killed by $nick ($reason).");
Irssi::signal_stop();
});