Skip to content

Instantly share code, notes, and snippets.

@zachwalton
Last active August 29, 2015 14:21
Show Gist options
  • Save zachwalton/a66470b18d954dbd1dd7 to your computer and use it in GitHub Desktop.
Save zachwalton/a66470b18d954dbd1dd7 to your computer and use it in GitHub Desktop.
use vars qw($VERSION %IRSSI);
use Irssi qw(command_bind);
my $VERSION = '1.00';
my %IRSSI =
(
authors => 'Zach Walton',
contact => '[email protected]',
name => 'birdsummoner',
description => 'Summon jonEbird back to #linux',
license => 'GPL'
);
sub parse() {
my ($server, $channel, $nick, $address, $reason) = @_;
if ($nick =~ /jonebird/si && $reason =~ /CGI:IRC\s\(EOF\)/s) {
$server->command("MSG $channel !summon jonebird get back in here! :)");
}
Irssi::signal_continue(@_);
};
sub print_welcome() {
Irssi::active_win()->print("Summoning jonEbird on exit!", MSGLEVEL_CRAP);
};
print_welcome();
Irssi::signal_add_first("message part", "parse");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment