summaryrefslogtreecommitdiff
path: root/mysql.c
diff options
context:
space:
mode:
authorribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-10 00:08:49 +0000
committerribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b <ribosome ribosome@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-06-10 00:08:49 +0000
commit1b30a95400341aaae613009f069feba930cc46e1 (patch)
tree37dd55ab53e65a2fd72872b9da80578804f3c17f /mysql.c
parentdfad1f6a4de3ac832e94965bf0fec4e9c455445a (diff)
BUILD : 1.7.3 (183) BUGS : 92 NOTES : Added check to see if MysqlName and MysqlUser were not null to avoid any problems.
git-svn-id: svn://svn.anope.org/anope/trunk@183 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@128 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'mysql.c')
-rw-r--r--mysql.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql.c b/mysql.c
index 4479596bc..1b83502c2 100644
--- a/mysql.c
+++ b/mysql.c
@@ -59,6 +59,15 @@ int db_mysql_init()
alog("MySQL has been enabled.");
}
+ /* The following configuration options are required.
+ * If missing disable MySQL to avoid any problems.
+ */
+
+ if (!MysqlName || !MysqlUser) {
+ do_mysql = 0;
+ alog("MySQL Error: Set all required configuration options.");
+ }
+
if (!db_mysql_open())
do_mysql = 0;