git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@430
c11ca15a-4712-0410-83d8-
924469b57eb5
# reverse order of &setup().
&DEBUG("shutdown called.");
# 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();
&closeDB();
&closeSHM($shm); # aswell. TODO: use this in &doExit?
&closeLog();