From: dms Date: Sat, 7 Apr 2001 12:05:18 +0000 (+0000) Subject: - write opened files on shutdown/hup X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ba87bdcfbc8437eb54e17df06996389cea8f65b4;p=infobot.git - write opened files on shutdown/hup git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@430 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/core.pl b/src/core.pl index 02db5aa..1c7b6d4 100644 --- a/src/core.pl +++ b/src/core.pl @@ -354,6 +354,12 @@ sub shutdown { # reverse order of &setup(). &DEBUG("shutdown called."); + # opened files must be written to on shutdown/hup/whatever + # unless they're write-only, like uptime. + &writeUserFile(); + &writeChanFile(); + &News::writeNews() if (&ChanConfList("news")); + &closeDB(); &closeSHM($shm); # aswell. TODO: use this in &doExit? &closeLog();