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
- Check for existance of hash key before using
[videosite.git]
/
videosite.pl
diff --git
a/videosite.pl
b/videosite.pl
index
c970e98
..
3ae1e83
100644
(file)
--- a/
videosite.pl
+++ b/
videosite.pl
@@
-302,6
+302,7
@@
sub ploader {
write_debug(undef, "found $g->{'TYPE'} $g->{'NAME'}");
if ($type eq $g->{'TYPE'}) {
push(@g, $g);
write_debug(undef, "found $g->{'TYPE'} $g->{'NAME'}");
if ($type eq $g->{'TYPE'}) {
push(@g, $g);
+ $g->setio(sub {Irssi::print(shift)});
} else {
write_irssi(undef, '%s has wrong type (got %s, expected %s)', $p, $g->{'TYPE'}, $type);
delete($INC{$p});
} else {
write_irssi(undef, '%s has wrong type (got %s, expected %s)', $p, $g->{'TYPE'}, $type);
delete($INC{$p});