]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Misc.pl
show modified by in factinfo
[infobot.git] / src / Misc.pl
index 358515467576b10dedebb1a9bac7906a406fe79d..68e4fa4c3a7275426bf88a110a065af0522d5e1c 100644 (file)
@@ -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.