From c7496b6fb7f0293e14636f758fff1a29666f29ac Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Wed, 16 Jun 2021 16:57:29 +0100 Subject: [PATCH] m_dline: make the private reason private --- modules/m_dline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/m_dline.c b/modules/m_dline.c index eb8edcf3..5960c8a2 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -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;