From 9439cac6b126254bc488c2375b9e7ff5fd4fce74 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 7 May 2010 14:11:21 -0400 Subject: Added m_ssl.cpp which allows Anope to use SSL when connecting to its uplink --- src/core/db_plain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/db_plain.cpp b/src/core/db_plain.cpp index 65f936650..0ae6c47f8 100644 --- a/src/core/db_plain.cpp +++ b/src/core/db_plain.cpp @@ -556,8 +556,7 @@ class DBPlain : public Module void BackupDatabase() { /* Do not backup a database that doesn't exist */ - struct stat DBInfo; - if (stat(DatabaseFile.c_str(), &DBInfo)) + if (!IsFile(DatabaseFile)) { return; } -- cgit