summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--mysql.c9
-rw-r--r--version.log6
3 files changed, 15 insertions, 1 deletions
diff --git a/Changes b/Changes
index b5e895f2d..64ea8ae68 100644
--- a/Changes
+++ b/Changes
@@ -7,6 +7,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004
05/24 A New NSNickTracking directive to provide nick tracking. [ #71]
05/21 A Auto enforce upon AKICK addition. [ #63]
05/21 A New file docs/OLDCHANGES contains all change history. [ #65]
+06/10 F Added check to see if MysqlUser and MysqlName were not null. [ #92]
06/09 F Corrected a number of spelling errors in en_us.l. [ #94]
06/09 F Corrected a large number of spelling and typing errors in docs. [ #87]
06/09 F Corrected compile warning for Hybrid support. [ #93]
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;
diff --git a/version.log b/version.log
index d20f9d620..e68ff64bf 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="3"
-VERSION_BUILD="182"
+VERSION_BUILD="183"
# $Log$
#
+# BUILD : 1.7.3 (183)
+# BUGS : 92
+# NOTES : Added check to see if MysqlName and MysqlUser were not null to avoid any problems.
+#
# BUILD : 1.7.3 (182)
# BUGS : 94
# NOTES : Fixed number of spelling errors in en_us.l. Thanks to Trystan for assisting corrections.