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;