]> the.earth.li Git - htag.git/blobdiff - plugins/08uptime
Import Debian changes 0.0.23-1
[htag.git] / plugins / 08uptime
index ffa34f643aba55c6ace5928db387c90d708fb4db..89e53ce934dab22a2b8a6a14c3f1a7f7a0921a6b 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/perl -w
 
-# Copyright (C) 2000-2001 Simon Huggins
+# Copyright (C) 2000-2003 Simon Huggins
 # uptime merely calls uptime.  You can influence the output a bit.
 
 # This program is free software; you can redistribute it and/or modify it
@@ -36,7 +36,9 @@ $uptime =~ s/^.*?(up (?:[0-9]+ days?,)?[^,]+),.*$/$1/ if $cfg{'uptime_time'};
 $uptime =~ s/[ ]+/ /g;
 foreach my $f (@found) {
        my @f = @{$f};
-       if (length $uptime <= $f[1]) {
+       if ($f[1] eq "*") {
+               print OUT $uptime,"\n";
+       } elsif (length $uptime <= $f[1]) {
                print OUT chunksizealign($uptime, $f[1], $f[2]),"\n";
        } else {
                htagdie "Can't fit uptime in <= $f[1].\nPerhaps your space isn't big enough.\nAlternatively modify this script to give less information.\n";