summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-13 14:56:13 -0400
committerAdam <Adam@anope.org>2010-06-18 21:01:17 -0400
commit81a45520a773732c9f46785f27aa1956150775d7 (patch)
treeb37c2ad0d77e3ba1b4c7c6e09fa07812eb03add5 /src/core
parente6263dba84b80f03d02c379ace081e602f8ef199 (diff)
Added some global variables for the core pseudo clients, keeps us from having to call findbot() everywhere
Diffstat (limited to 'src/core')
-rw-r--r--src/core/db_plain.cpp3
1 files changed, 2 insertions, 1 deletions
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;