]> jfr.im git - solanum.git/blobdiff - modules/m_testline.c
Revert "Accept expired certificates"
[solanum.git] / modules / m_testline.c
index 99bcc20d58a0dcf48ada7af4ca6590c9671a6d21..d8ec1347ee37a7f396b16455fc1fb7323d26ba7d 100644 (file)
@@ -117,7 +117,10 @@ mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
                mask = p;
 
                if(EmptyString(mask))
+               {
+                       sendto_one_notice(source_p, "Invalid syntax for TESTLINE");
                        return;
+               }
        }
 
        if((p = strchr(mask, '@')))
@@ -127,7 +130,10 @@ mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
                host = p;
 
                if(EmptyString(host))
+               {
+                       sendto_one_notice(source_p, "Invalid syntax for TESTLINE");
                        return;
+               }
        }
        else
                host = mask;
@@ -229,7 +235,8 @@ mo_testline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sou
                sendto_one_numeric(source_p, RPL_STATSILINE, form_str(RPL_STATSILINE),
                                aconf->info.name, EmptyString(aconf->spasswd) ? "<NULL>" : aconf->spasswd,
                                show_iline_prefix(source_p, aconf, aconf->user),
-                               aconf->host, aconf->port, aconf->className);
+                               aconf->host, aconf->port, aconf->className,
+                               CheckEmpty(aconf->desc));
                return;
        }
 
@@ -269,7 +276,10 @@ mo_testkline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *so
                mask = p + 1;
 
                if(EmptyString(mask))
+               {
+                       sendto_one_notice(source_p, "Invalid syntax for TESTKLINE");
                        return;
+               }
        }
 
        if ((p = strchr(mask, '@')))
@@ -279,7 +289,10 @@ mo_testkline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *so
                host = p;
 
                if(EmptyString(host))
+               {
+                       sendto_one_notice(source_p, "Invalid syntax for TESTKLINE");
                        return;
+               }
        }
        else
        {