Skip to content

Commit

Permalink
m_dline: make the private reason private
Browse files Browse the repository at this point in the history
  • Loading branch information
edk0 committed Jul 13, 2021
1 parent 1c78029 commit c7496b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/m_dline.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit c7496b6

Please sign in to comment.