m_dline: make the private reason private

This commit is contained in:
Ed Kellett 2021-06-16 16:57:29 +01:00
parent 1c78029cd4
commit c7496b6fb7

View file

@ -280,7 +280,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
aconf->status = CONF_DLINE;
aconf->created = rb_current_time();
aconf->host = rb_strdup(dlhost);
aconf->passwd = rb_strdup(reason);
aconf->info.oper = operhash_add(get_oper_name(source_p));
if(strlen(reason) > BANREASONLEN)
@ -296,6 +295,8 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
aconf->spasswd = rb_strdup(oper_reason);
}
aconf->passwd = rb_strdup(reason);
if(tdline_time > 0)
{
aconf->hold = rb_current_time() + tdline_time;