&writeUserFile();
&writeChanFile();
&uptimeWriteFile() if (&IsChanConf("uptime"));
- &News::writeNews() if (&ChanConfList("news"));
- &closeDB();
+ &sqlCloseDB();
&closeSHM($shm);
&dumpallvars() if (&IsParam("dumpvarsAtExit"));
&symdumpAll() if (&IsParam("symdumpAtExit"));
$shm = &openSHM();
&openSQLDebug() if (&IsParam("SQLDebug"));
- &openDB($param{'DBName'}, $param{'DBType'}, $param{'SQLUser'},
+ &sqlOpenDB($param{'DBName'}, $param{'DBType'}, $param{'SQLUser'},
$param{'SQLPass'});
&checkTables();
&status("Setup: ". &countKeys("factoids") ." factoids.");
- &News::readNews() if (&ChanConfList("news"));
&getChanConfDefault("sendPrivateLimitLines", 3);
&getChanConfDefault("sendPrivateLimitBytes", 1000);
&getChanConfDefault("sendPublicLimitLines", 3);
# unless they're write-only, like uptime.
&writeUserFile();
&writeChanFile();
- &News::writeNews() if (&ChanConfList("news"));
- &closeDB();
+ &sqlCloseDB();
&closeSHM($shm); # aswell. TODO: use this in &doExit?
&closeLog();
}