Add general::hide_tkdline_duration
This commit is contained in:
parent
7b8e4c0967
commit
9914c013b4
3 changed files with 4 additions and 1 deletions
|
@ -178,6 +178,7 @@ struct config_file_entry
|
|||
int ts_warn_delta;
|
||||
int dline_with_reason;
|
||||
int kline_with_reason;
|
||||
int hide_tkdline_duration;
|
||||
int warn_no_nline;
|
||||
int nick_delay;
|
||||
int non_redundant_klines;
|
||||
|
|
|
@ -2757,6 +2757,7 @@ static struct ConfEntry conf_general_table[] =
|
|||
{ "hide_spoof_ips", CF_YESNO, NULL, 0, &ConfigFileEntry.hide_spoof_ips },
|
||||
{ "dline_with_reason", CF_YESNO, NULL, 0, &ConfigFileEntry.dline_with_reason },
|
||||
{ "kline_with_reason", CF_YESNO, NULL, 0, &ConfigFileEntry.kline_with_reason },
|
||||
{ "hide_tkdline_duration", CF_YESNO, NULL, 0, &ConfigFileEntry.hide_tkdline_duration },
|
||||
{ "map_oper_only", CF_YESNO, NULL, 0, &ConfigFileEntry.map_oper_only },
|
||||
{ "max_accept", CF_INT, NULL, 0, &ConfigFileEntry.max_accept },
|
||||
{ "max_monitor", CF_INT, NULL, 0, &ConfigFileEntry.max_monitor },
|
||||
|
|
|
@ -1326,7 +1326,8 @@ get_user_ban_reason(struct ConfItem *aconf)
|
|||
{
|
||||
static char reasonbuf[BUFSIZE];
|
||||
|
||||
if (aconf->flags & CONF_FLAGS_TEMPORARY &&
|
||||
if (!ConfigFileEntry.hide_tkdline_duration &&
|
||||
aconf->flags & CONF_FLAGS_TEMPORARY &&
|
||||
(aconf->status == CONF_KILL || aconf->status == CONF_DLINE))
|
||||
snprintf(reasonbuf, sizeof reasonbuf,
|
||||
"Temporary %c-line %d min. - ",
|
||||
|
|
Loading…
Reference in a new issue