From aa896a87ac4705a5a8a26cbf5ddae2db3fc54c62 Mon Sep 17 00:00:00 2001 From: "ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 17 Sep 2004 18:23:48 +0000 Subject: BUILD : 1.7.5 (350) BUGS : NOTES : Changed mysql init checks so they are only done if mysql is enabled. Many Thanks to DrStein for the patch. git-svn-id: svn://svn.anope.org/anope/trunk@350 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@226 5417fbe8-f217-4b02-8779-1006273d7864 --- src/mysql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mysql.c b/src/mysql.c index 7be2b5d40..896eb9216 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -64,7 +64,7 @@ int db_mysql_init() * If missing disable MySQL to avoid any problems. */ - if (!MysqlName || !MysqlUser) { + if ((do_mysql) && (!MysqlName || !MysqlUser)) { do_mysql = 0; alog("MySQL Error: Set all required configuration options."); } -- cgit