From 72464c6abd32daa335f5984f477ad25c9872529c Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sun, 26 Jul 2020 18:17:01 +0100 Subject: [PATCH] m_dline: Make error notices more verbose --- modules/m_dline.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/m_dline.c b/modules/m_dline.c index e6e18dd2..8917b9d2 100644 --- a/modules/m_dline.c +++ b/modules/m_dline.c @@ -99,14 +99,14 @@ mo_dline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source /* would break the protocol */ if (*dlhost == ':') { - sendto_one_notice(source_p, ":Invalid D-Line"); + sendto_one_notice(source_p, ":Invalid D-Line [%s] - IP cannot start with :", dlhost); return; } int ty = parse_netmask_strict(dlhost, NULL, NULL); if (ty != HM_IPV4 && ty != HM_IPV6) { - sendto_one_notice(source_p, ":Invalid D-Line"); + sendto_one_notice(source_p, ":Invalid D-Line [%s] - doesn't look like IP[/cidr]", dlhost); return; } @@ -366,7 +366,7 @@ apply_undline(struct Client *source_p, const char *cidr) if(masktype != HM_IPV4 && masktype != HM_IPV6) { - sendto_one_notice(source_p, ":Invalid D-Line"); + sendto_one_notice(source_p, ":Invalid D-Line [%s] - doesn't look like IP[/cidr]", cidr); return; }