]> git.donarmstrong.com Git - infobot.git/blobdiff - src/core.pl
- bleh. no need to explain. had to back out one change by mistake.
[infobot.git] / src / core.pl
index bf03587fb5b1fb9bb2503431509f44b6db1bc515..77c8f9c4fc3767d981a0d99290c6f14e5ae75532 100644 (file)
@@ -110,9 +110,6 @@ sub doExit {
        }
        &writeUserFile();
        &writeChanFile();
-       if (&IsChanConf("uptime")) {
-           &DEBUG("going to write uptime file info.");
-       }
        &uptimeWriteFile()      if (&IsChanConf("uptime"));
        &News::writeNews()      if (&ChanConfList("news"));
        &closeDB();
@@ -212,6 +209,13 @@ sub IsChanConf {
        return 0;
     }
 
+    # should we use IsParam() externally where needed or hack it in 
+    # here just in case? fix it later.
+    if (&IsParam($param)) {
+       &status("ICC: found '$param' option in main config file.");
+       return 1;
+    }
+
     $chan      ||= "_default";
 
     my $old = $chan;