- Move "videosite: log prefix into write_irssi()
authorRalf Ertzinger <sun@lain.camperquake.de>
Sat, 12 Jan 2008 23:11:02 +0000 (00:11 +0100)
committerRalf Ertzinger <sun@lain.camperquake.de>
Sat, 12 Jan 2008 23:11:02 +0000 (00:11 +0100)
videosite.pl

index da075cb..58e4c96 100644 (file)
@@ -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 {
@@ -97,9 +99,9 @@ sub cmd_save {
         close(CONF);
     };
     if ($@) {
         close(CONF);
     };
     if ($@) {
-        write_irssi(undef, 'videosite: Could not save config to %s: %s', ($conffile, $@));
+        write_irssi(undef, 'Could not save config to %s: %s', ($conffile, $@));
     } else {
     } else {
-        write_irssi(undef, 'Videosite configuration saved to %s', $conffile);
+        write_irssi(undef, 'configuration saved to %s', $conffile);
     }
 }
 
     }
 }