Changeset 576 for lang/perl/irssi
- Timestamp:
- 10/21/07 18:47:40 (6 years ago)
- Files:
-
- 1 modified
-
lang/perl/irssi/scripts/xcezx.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/irssi/scripts/xcezx.pl
r574 r576 2 2 use warnings; 3 3 4 use Irssi ;4 use Irssi qw/signal_add/; 5 5 6 6 our $VERSION = '0.01'; 7 our %IRSSI = ( name => 'xcezx' ); 7 8 8 our %IRSSI = ( 9 name => 'xcezx', 10 authors => 'Daisuke Murase', 9 signal_add( 10 'message public' => sub { 11 my ( $server, $msg, $nick, $address, $target ) = @_; 12 $server->command("MSG $target xcezx--") if $msg =~ /xcezx--/; 13 } 11 14 ); 12 13 sub sig_public {14 my ($server, $msg, $nick, $address, $target) = @_;15 $server->command("MSG $target xcezx--") if $msg =~ /xcezx--/;16 }17 18 Irssi::signal_add('message public', \&sig_public);
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)