X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=videosite-irssi.pl;h=043cc939dd8c8742ab24de7d1c47d62e8405439e;hb=ae02b5f92b84fc5e6cba1986dcce7d2a7a7f5aa1;hp=2e5a0ec434f6c655f019466101855dca4e822d6e;hpb=513fff57bcf5c5724ea25fc69831b97f8f0bc0cc;p=videosite.git diff --git a/videosite-irssi.pl b/videosite-irssi.pl index 2e5a0ec..043cc93 100644 --- a/videosite-irssi.pl +++ b/videosite-irssi.pl @@ -9,6 +9,9 @@ use File::Spec; use Module::Load; use XML::Simple; use JSON -support_by_pp; +use Carp; + +$SIG{ __DIE__ } = sub { Carp::confess( @_ ) }; # # List of foreground colors. This list is not complete, it just @@ -211,7 +214,7 @@ sub videosite_hook { my ($cmdline, $server, $witem) = @_; my %event = ( message => $cmdline, - ewpf => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP):Irssi::print($_[0]) }, + io => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP):Irssi::print($_[0]) }, window => defined($witem)?$witem->{server}->{real_address} . "/" . $witem->{name}:"", ); @@ -227,7 +230,7 @@ sub message_hook { my $witem = $server->window_item_find($channel); my %event = ( message => $msg, - ewpf => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP):Irssi::print($_[0]) }, + io => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP):Irssi::print($_[0]) }, window => defined($witem)?$witem->{server}->{real_address} . "/" . $witem->{name}:"", );