]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
m_dline: Make error notices more verbose
authorEd Kellett <redacted>
Sun, 26 Jul 2020 17:17:01 +0000 (18:17 +0100)
committerEd Kellett <redacted>
Sun, 26 Jul 2020 21:50:42 +0000 (22:50 +0100)
modules/m_dline.c

index e6e18dd2e363b968166ebcce64742e4fc5689f3a..8917b9d2c9469ce4e3b0e3af2cb1bbee59da557e 100644 (file)
@@ -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;
        }