Commit Diff
Diff:
ba3b22b851d1b20fc918569a50e328ed7edf906d
3aa1d880fe824fd8a3e6ce1db3a66bd4ae56b6bc
Commit:
3aa1d880fe824fd8a3e6ce1db3a66bd4ae56b6bc
Tree:
7eededb8962336f7e934e1a503189587a25a1166
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Sun Mar 29 20:31:18 2020 UTC
Message:
Add deprecation warnings for "Key" and "MaxUsers" in [Channel]
blob - 373ea6b1ed7bf6709038f84d3b08be11eefffa3b
blob + 02ed1f390c2ab45d8cb68b9090fdd1eb188e4adc
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
@@ -2177,6 +2177,9 @@ Handle_CHANNEL(const char *File, int Line, char *Var,
len = strlcpy(chan->key, Arg, sizeof(chan->key));
if (len >= sizeof(chan->key))
Config_Error_TooLong(File, Line, Var);
+ Config_Error(LOG_WARNING,
+ "%s, line %d (section \"Channel\"): \"%s\" is deprecated here, use \"Modes = +k <key>\"!",
+ File, Line, Var);
return;
}
if( strcasecmp( Var, "MaxUsers" ) == 0 ) {
@@ -2184,6 +2187,9 @@ Handle_CHANNEL(const char *File, int Line, char *Var,
chan->maxusers = (unsigned long) atol(Arg);
if (!chan->maxusers && strcmp(Arg, "0"))
Config_Error_NaN(File, Line, Var);
+ Config_Error(LOG_WARNING,
+ "%s, line %d (section \"Channel\"): \"%s\" is deprecated here, use \"Modes = +l <limit>\"!",
+ File, Line, Var);
return;
}
if (strcasecmp(Var, "KeyFile") == 0) {
IRCNow