X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/ce60772db6eb54b5cc87bbaa5c3b5bf783d59be2..157c1f04bd3b04cbdcef5efb3cb280d0e10f1e7f:/modules/m_dline.c diff --git a/modules/m_dline.c b/modules/m_dline.c index 64e5f34..912091c 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -213,7 +213,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char * { struct ConfItem *aconf; char *oper_reason; - char dlbuffer[IRCD_BUFSIZE]; struct rb_sockaddr_storage daddr; int t = AF_INET, ty, b; const char *creason; @@ -289,6 +288,7 @@ 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); /* Look for an oper reason */ if((oper_reason = strchr(reason, '|')) != NULL) @@ -302,10 +302,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char * if(tdline_time > 0) { - rb_snprintf(dlbuffer, sizeof(dlbuffer), - "Temporary D-line %d min. - %s", - (int) (tdline_time / 60), reason); - aconf->passwd = rb_strdup(dlbuffer); aconf->hold = rb_current_time() + tdline_time; add_temp_dline(aconf); @@ -334,7 +330,6 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char * } else { - aconf->passwd = rb_strdup(reason); add_conf_by_address(aconf->host, CONF_DLINE, NULL, NULL, aconf); bandb_add(BANDB_DLINE, source_p, aconf->host, NULL,