m_dline: make the private reason private
This commit is contained in:
parent
1c78029cd4
commit
c7496b6fb7
1 changed files with 2 additions and 1 deletions
|
@ -280,7 +280,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
|
||||||
aconf->status = CONF_DLINE;
|
aconf->status = CONF_DLINE;
|
||||||
aconf->created = rb_current_time();
|
aconf->created = rb_current_time();
|
||||||
aconf->host = rb_strdup(dlhost);
|
aconf->host = rb_strdup(dlhost);
|
||||||
aconf->passwd = rb_strdup(reason);
|
|
||||||
aconf->info.oper = operhash_add(get_oper_name(source_p));
|
aconf->info.oper = operhash_add(get_oper_name(source_p));
|
||||||
|
|
||||||
if(strlen(reason) > BANREASONLEN)
|
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->spasswd = rb_strdup(oper_reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aconf->passwd = rb_strdup(reason);
|
||||||
|
|
||||||
if(tdline_time > 0)
|
if(tdline_time > 0)
|
||||||
{
|
{
|
||||||
aconf->hold = rb_current_time() + tdline_time;
|
aconf->hold = rb_current_time() + tdline_time;
|
||||||
|
|
Loading…
Reference in a new issue