From 81a45520a773732c9f46785f27aa1956150775d7 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 13 May 2010 14:56:13 -0400 Subject: Added some global variables for the core pseudo clients, keeps us from having to call findbot() everywhere --- src/core/db_plain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp index fba374667..24b494d82 100644 --- a/src/core/db_plain.cpp +++ b/src/core/db_plain.cpp @@ -53,6 +53,7 @@ static void ReadDatabase(Module *m = NULL) NickCore *nc = NULL; NickAlias *na = NULL; + NickRequest *nr = NULL; BotInfo *bi = NULL; ChannelInfo *ci = NULL; @@ -550,7 +551,7 @@ class DBPlain : public Module snprintf(newname, DatabaseFile.length() + 30, "backups/%s.%d%d%d", DatabaseFile.c_str(), tm->tm_year, tm->tm_mon, tm->tm_mday); /* Backup already exists */ - if (!stat(newname, &DBInfo)) + if (IsFile(newname)) { delete [] newname; return; -- cgit