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
- Move "videosite: log prefix into write_irssi()
[videosite.git]
/
videosite.pl
diff --git
a/videosite.pl
b/videosite.pl
index
c987a26
..
58e4c96
100644
(file)
--- a/
videosite.pl
+++ b/
videosite.pl
@@
-1,6
+1,6
@@
# autodownload flash videos
#
# autodownload flash videos
#
-# (c) 2007 by Ralf Ertzinger <ralf@camperquake.de>
+# (c) 2007
-2008
by Ralf Ertzinger <ralf@camperquake.de>
# licensed under GNU GPL v2
#
# Based on youtube.pl by Christian Garbs <mitch@cgarbs.de>
# licensed under GNU GPL v2
#
# Based on youtube.pl by Christian Garbs <mitch@cgarbs.de>
@@
-42,6
+42,8
@@
sub write_irssi {
my $witem = shift;
my @text = @_;
my $witem = shift;
my @text = @_;
+ $text[0] = 'videosite: ' . $text[0];
+
if (defined $witem) {
$witem->print(sprintf(shift(@text), @text), MSGLEVEL_CLIENTCRAP);
} else {
if (defined $witem) {
$witem->print(sprintf(shift(@text), @text), MSGLEVEL_CLIENTCRAP);
} else {
@@
-50,12
+52,6
@@
sub write_irssi {
}
}
-sub write_verbose {
- if (Irssi::settings_get_bool('youtube_verbose')) {
- write_irssi(shift, @_);
- }
-}
-
sub write_debug {
if ($debug) {
write_irssi(shift, @_);
sub write_debug {
if ($debug) {
write_irssi(shift, @_);
@@
-103,9
+99,9
@@
sub cmd_save {
close(CONF);
};
if ($@) {
close(CONF);
};
if ($@) {
- write_irssi(undef, '
videosite: Could not save config: %s', $@
);
+ write_irssi(undef, '
Could not save config to %s: %s', ($conffile, $@)
);
} else {
} else {
- write_irssi(undef, '
videosite: Saved config'
);
+ write_irssi(undef, '
configuration saved to %s', $conffile
);
}
}
}
}