git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Youtube: Whitespace fixes
[videosite.git]
/
videosite-irssi.pl
diff --git
a/videosite-irssi.pl
b/videosite-irssi.pl
index
1afd31a
..
043cc93
100644
(file)
--- 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 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
#
# 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,
my ($cmdline, $server, $witem) = @_;
my %event = (
message => $cmdline,
-
ewpf => sub { defined($witem)?$witem->print($_[0]
):Irssi::print($_[0]) },
+
io => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP
):Irssi::print($_[0]) },
window => defined($witem)?$witem->{server}->{real_address} . "/" . $witem->{name}:"",
);
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,
my $witem = $server->window_item_find($channel);
my %event = (
message => $msg,
-
ewpf => sub { defined($witem)?$witem->print($_[0]
):Irssi::print($_[0]) },
+
io => sub { defined($witem)?$witem->print($_[0], MSGLEVEL_CLIENTCRAP
):Irssi::print($_[0]) },
window => defined($witem)?$witem->{server}->{real_address} . "/" . $witem->{name}:"",
);
window => defined($witem)?$witem->{server}->{real_address} . "/" . $witem->{name}:"",
);