]> git.donarmstrong.com Git - infobot.git/blobdiff - src/core.pl
- patch from Morten Brix Pedersen <morten@wtf.dk>. Thanks!
[infobot.git] / src / core.pl
index a51064bfbc4ad855e8aeef02941536386b044081..e8975c136a799f11219e10e071d3de9d85c8fbd0 100644 (file)
@@ -11,6 +11,7 @@ use strict;
 ### TODO: reorder.
 use vars qw(
        $bot_misc_dir $bot_pid $bot_base_dir $bot_src_dir
+       $bot_data_dir $bot_config_dir $bot_state_dir $bot_run_dir
        $answer $correction_plausible $talkchannel $bot_release
        $statcount $memusage $user $memusageOld $bot_version $dbh
        $shm $host $msg $noreply $conn $irc $learnok $nick $ident
@@ -22,6 +23,7 @@ use vars qw(
        $pubsize $pubcount $pubtime
        $msgsize $msgcount $msgtime
        $notsize $notcount $nottime
+       $running
 );
 
 # dynamic hash.
@@ -56,6 +58,7 @@ $ucount_userfile = 0;
 $utime_chanfile        = 0;
 $wtime_chanfile        = 0;
 $ucount_chanfile = 0;
+$running       = 0;
 ### more variables...
 $msgtime       = time();
 $msgsize       = 0;
@@ -508,8 +511,7 @@ sub loadConfig {
 
     if (!open(FILE, $file)) {
        &ERROR("FAILED loadConfig ($file): $!");
-       &status("Please copy files/sample.config to files/blootbot.config");
-       &status("  and edit files/blootbot.config, modify to tastes.");
+       &status("Please read the INSTALL file on how to install and setup this file.");
        exit 0;
     }