]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
apply consistent tabs as spaces
authorZachary Leaf <redacted>
Mon, 21 Nov 2022 21:00:34 +0000 (21:00 +0000)
committerZachary Leaf <redacted>
Mon, 21 Nov 2022 21:02:07 +0000 (21:02 +0000)
scripts/urlwindow.pl

index faea05819b61c91433aa8e2c1022ecf9a6de4af2..4016285302dec74c508bda621d501486fb487287 100644 (file)
@@ -7,14 +7,13 @@ use POSIX;
 use vars qw($VERSION %IRSSI);
 use strict;
 
-$VERSION = "1.3";
+$VERSION = "1.4";
 %IRSSI = (
     authors     => "zdleaf",
     contact     => 'zdleaf@zinc.london',
     name        => "urlwindow",
     description => "Log all urls from #channels and /msgs in a separate window",
     license     => "Public Domain",
-    url         => "http://irssi.org/",
 );
 
 sub sig_printtext {
@@ -23,7 +22,7 @@ sub sig_printtext {
     if((($dest->{level} & (MSGLEVEL_PUBLIC)) || ($dest->{level} & (MSGLEVEL_MSGS)))
     && ($text =~
         qr#((?:(https?|gopher|ftp)://[^\s<>"]+|www\.[-a-z0-9.]+)[^\s.,;<">\):])# ))
-       {
+    {
         my $window = Irssi::window_find_name('urls');
 
         if ($dest->{level} & MSGLEVEL_PUBLIC) {
@@ -41,8 +40,8 @@ sub sig_printtext {
 my $window = Irssi::window_find_name('urls');
 
 if (!$window) {
-       $window = Irssi::Windowitem::window_create('urls', 1);
-       $window->set_name('urls');
-       }
+    $window = Irssi::Windowitem::window_create('urls', 1);
+    $window->set_name('urls');
+}
 
 Irssi::signal_add('print text', 'sig_printtext');
git clone https://git.99rst.org/PROJECT