]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
hilightwin.pl: Use CLIENTCRAP level instead of NEVER to allow logging
authordequis <redacted>
Sat, 7 Nov 2015 17:09:15 +0000 (14:09 -0300)
committerdequis <redacted>
Sat, 7 Nov 2015 17:09:15 +0000 (14:09 -0300)
Also remove the prepended timestamp, since CLIENTCRAP already has one

scripts/hilightwin.pl

index d735e1b72dde558b026bf2f2ee4f89bc147a3426..7d70317847910abff082830e539e69f2f1503226 100644 (file)
@@ -11,7 +11,7 @@ use Irssi;
 use POSIX;
 use vars qw($VERSION %IRSSI); 
 
-$VERSION = "0.03";
+$VERSION = "0.04";
 %IRSSI = (
     authors     => "Timo \'cras\' Sirainen, Mark \'znx\' Sangster",
     contact     => "tss\@iki.fi, znxster\@gmail.com", 
@@ -40,12 +40,8 @@ sub sig_printtext {
         if ($dest->{level} & MSGLEVEL_PUBLIC) {
             $text = $dest->{target}.": ".$text;
         }
-        $text = strftime(
-            Irssi::settings_get_str('timestamp_format')." ",
-            localtime
-        ).$text;
         $text =~ s/%/%%/g;
-        $window->print($text, MSGLEVEL_NEVER) if ($window);
+        $window->print($text, MSGLEVEL_CLIENTCRAP) if ($window);
     }
 }
 
git clone https://git.99rst.org/PROJECT