git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@929
c11ca15a-4712-0410-83d8-
924469b57eb5
sub startup {
if (&IsParam("DEBUG")) {
&status("enabling debug diagnostics.");
- ### I thought disabling this reduced memory usage by 1000 KiB.
+ # I thought disabling this reduced memory usage by 1000 KiB.
use diagnostics;
}
# reverse order of &setup().
&status("--- shutdown called.");
- $ident ||= "blootbot"; # hack.
+ # hack.
+ $ident ||= "blootbot";
if (!&isFileUpdated("$bot_state_dir/blootbot.users", $wtime_userfile)) {
&writeUserFile()
}
&sqlCloseDB();
- &closeSHM($shm); # aswell. TODO: use this in &doExit?
+ # aswell. TODO: use this in &doExit?
+ &closeSHM($shm);
&closeLog();
}