Switched from Auto-Flatfile to SQLite for database backend.

This commit is contained in:
Elijah Perrault committed 2011-02-09 20:16:32 -07:00
1 parent a0c58bb471
commit cd2d91a430
3 files changed
+18 -11

No files matched your search

+2 -2
View File
@@ -144,7 +144,7 @@ sub cmd_shutdown
dbug "Got SHUTDOWN from ".$data{nick}."!".$data{user}."@".$data{host}."/".$data{svr}."! Shutting down. . .";
alog "Got SHUTDOWN from ".$data{nick}."!".$data{user}."@".$data{host}."/".$data{svr}."! Shutting down. . .";
quit($_, "SHUTDOWN from ".$data{nick}."/".$data{svr}) foreach (keys %Auto::SOCKET);
DB::flush();
$Auto::DB->disconnect;
system("rm $Auto::Bin/auto.pid");
exit;
@@ -166,7 +166,7 @@ sub cmd_restart
dbug "Got RESTART from ".$data{nick}."!".$data{user}."@".$data{host}."/".$data{svr}."! Restarting. . .";
alog "Got RESTART from ".$data{nick}."!".$data{user}."@".$data{host}."/".$data{svr}."! Restarting. . .";
quit($_, "RESTART from ".$data{nick}."/".$data{svr}) foreach (keys %Auto::SOCKET);
DB::flush();
$Auto::DB->disconnect;
system("rm $Auto::Bin/auto.pid") if -e "$Auto::Bin/auto.pid";
# Time to come back from the dead!