]> git.donarmstrong.com Git - infobot.git/blobdiff - scripts/findparam.pl
* Add vim formatting comments ( # vim:ts=4:sw=4:expandtab:tw=80 )
[infobot.git] / scripts / findparam.pl
index d079e201550a613a2ab56fe0ef420c7dbdb5c37c..0a559d168f8ca0761ca43dd224844ea62edcf8af 100644 (file)
@@ -19,9 +19,9 @@ foreach (`find -name "*.pl"`) {
            next;
        }
 
-       if (/hasParam\(['"](\S+?)['"]\)/) {
-           print "File: $file: hasParam: $1\n" if $debug;
-           $param{$1}++;
+       if (/IsChanConfOrWarn\(['"](\S+?)['"]\)/) {
+           print "File: $file: IsChanConfOrWarn: $1\n" if $debug;
+           $both{$1}++;
            next;
        }
 
@@ -31,7 +31,7 @@ foreach (`find -name "*.pl"`) {
            next;
        }
 
-       if (/getChanConf\(['"](\S+?)['"]\)/) {
+       if (/getChanConf\(['"](\S+?)['"]/) {
            print "File: $file: gCC: $1\n" if $debug;
            $conf{$1}++;
            next;
@@ -43,7 +43,7 @@ foreach (`find -name "*.pl"`) {
            next;
        }
 
-       # command hooks => hasParam => both.
+       # command hooks => IsChanConfOrWarn => both.
        # note: this does not support multiple lines.
        if (/\'Identifier\'[\s\t]=>[\s\t]+\'(\S+?)\'/) {
            print "File: $file: command hook: $1\n" if $debug;
@@ -70,3 +70,5 @@ print "Conf:\n";
 foreach (sort keys %conf) {
     print "    $_\n";
 }
+
+# vim:ts=4:sw=4:expandtab:tw=80