]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Misc.pl
- bleh. no need to explain. had to back out one change by mistake.
[infobot.git] / src / Misc.pl
index b36ac963cf94f102fef971fa67441b42519ff22e..68e4fa4c3a7275426bf88a110a065af0522d5e1c 100644 (file)
@@ -5,7 +5,7 @@
 #      NOTE: Based on code by Kevin Lenzo & Patrick Cole  (c) 1997
 #
 
-if (&IsParam("useStrict")) { use strict; }
+#use strict;
 
 sub help {
     my $topic = shift;
@@ -66,7 +66,7 @@ sub help {
 
     if (exists $help{$topic}) {
        foreach (split /\n/, $help{$topic}) {
-           &performStrictReply($_);
+           &pSReply($_);
        }
     } else {
        &pSReply("no help on $topic.  Use 'help' without arguments.");
@@ -200,9 +200,9 @@ sub fixFileList {
 
     # generate a hash list.
     foreach (@files) {
-       if (/^(.*\/)(.*?)$/) {
-           $files{$1}{$2} = 1;
-       }
+       next unless /^(.*\/)(.*?)$/;
+
+       $files{$1}{$2} = 1;
     }
     @files = ();       # reuse the array.