Просмотр исходного кода

Remove support for unnamed arguments on commandline.
Also enable nicktracking by default, and see how this goes..

Morten Brix Pedersen 25 лет назад
Родитель
Сommit
abd2c1d7cb
2 измененных файлов с 4 добавлено и 8 удалено
  1. 3 0
      Changelog
  2. 1 8
      pisg.pl

+ 3 - 0
Changelog

@@ -16,6 +16,9 @@ pisg (0.21)
    * Some small HTML validation fixes
    * Fix: pisg didn't find the alias for the kicker.
    * Stop hardcoding filenames in 'legend'
+   * Removed support for unnamed arguments on commandline, everyone should now
+     use the named arguments. (For example you must do 'pisg.pl -l
+     logfile-name', and not just do 'pisg.pl chan logfile format maintainer')
    * Some nice speedup improvements
 
 pisg (0.20) - Tue, Aug 14th 2001

+ 1 - 8
pisg.pl

@@ -90,7 +90,7 @@ my $conf = {
     activenicks => 25,
     activenicks2 => 30,
     topichistory => 3,
-    nicktracking => 0,
+    nicktracking => 1,
     timeoffset => "+0",
 
     # Misc settings
@@ -2419,13 +2419,6 @@ END_USAGE
                    die($usage);
                }
 
-    if (@ARGV) {
-        if ($ARGV[0]) { $conf->{channel} = $ARGV[0]; }
-        if ($ARGV[1]) { $conf->{logfile} = $ARGV[1]; }
-        if ($ARGV[2]) { $conf->{outputfile} = $ARGV[2]; }
-        if ($ARGV[3]) { $conf->{maintainer} = $ARGV[3]; }
-    }
-
     if ($tmp) {
         die("The aliasfile and ignorefile has been obsoleted by the new
         pisg.cfg, please use that instead [look in pisg.cfg]\n");