summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/mysql.c2
-rw-r--r--version.log7
3 files changed, 8 insertions, 2 deletions
diff --git a/Changes b/Changes
index efe12c735..9d4ee4b0f 100644
--- a/Changes
+++ b/Changes
@@ -3,6 +3,7 @@ Anope Version S V N
Provided by Anope Dev. <dev@anope.org> - 2004
08/24 A New -l option for am script to list possible selectors. [ #00]
09/08 A Removed rand() and ported bsd's arc4random() to fit our needs. [ #00]
+09/17 F Fixed MySQL error, whereby checks are only done if mysql is on. [ #00]
09/14 F Fixed /os MODE by joining nested ifs into one. [ #00]
09/14 F Protection unsetting now does -a instead of +a. [ #00]
09/12 F Updated Dutch language file. [ #00]
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.");
}
diff --git a/version.log b/version.log
index 7d2773e24..13354f10f 100644
--- a/version.log
+++ b/version.log
@@ -8,10 +8,15 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="5"
-VERSION_BUILD="349"
+VERSION_BUILD="350"
# $Log$
#
+# 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.
+#
# BUILD : 1.7.5 (349)
# BUGS :
# NOTES : Gave the Doc a mail addy