summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2015-08-01 14:43:38 +0200
committerAlexander Barton <alex@barton.de>2015-08-01 14:52:07 +0200
commit85dc4d87770f821b777f5dbf6372956dbffc770c (patch)
tree1d6e4e1832ec58c764624a08a2baf0e43f86237d /src
parent64c265cf33d09cfb9ab5e7d0bbc8033dc85f7c64 (diff)
downloadngircd-85dc4d87770f821b777f5dbf6372956dbffc770c.tar.gz
ngircd-85dc4d87770f821b777f5dbf6372956dbffc770c.zip
"NoticeAuth" configuration variable is deprecated now!
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 5f8bce5d..62b5044c 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -1796,7 +1796,19 @@ Handle_OPTIONS(const char *File, int Line, char *Var, char *Arg)
 		Conf_MorePrivacy = Check_ArgIsTrue(Arg);
 		return;
 	}
-	if (strcasecmp(Var, "NoticeBeforeRegistration") == 0 || strcasecmp(Var, "NoticeAuth") == 0) {
+	if (strcasecmp(Var, "NoticeAuth") == 0) {
+		/*
+		 * TODO: This section and support for "NoticeAuth" variable
+		 * could be removed starting with ngIRCd release 24 (one
+		 * release after marking it "deprecated") ...
+		 */
+		Config_Error(LOG_WARNING,
+			     "%s, line %d (section \"Options\"): \"%s\" is deprecated, please use \"NoticeBeforeRegistration\"!",
+			     File, Line, Var);
+		Conf_NoticeBeforeRegistration = Check_ArgIsTrue(Arg);
+		return;
+	}
+	if (strcasecmp(Var, "NoticeBeforeRegistration") == 0) {
 		Conf_NoticeBeforeRegistration = Check_ArgIsTrue(Arg);
 		return;
 	}