1
mirror of git://git.acid.vegas/archive.git synced 2024-11-15 04:36:53 +00:00
archive/bots/blackhole/honeypot/.irssi/scripts/autorun/killreconnect.pl
2023-09-12 15:47:16 -04:00

12 lines
313 B
Perl

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();
});