Last active
August 29, 2015 14:21
-
-
Save zachwalton/a66470b18d954dbd1dd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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