From 3dcaa851f44ff28ddca94300ba345f601b1fbd4c Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Thu, 22 Oct 2020 21:17:10 +0100 Subject: [PATCH] m_testline: Complain on formerly-silent failures --- modules/m_testline.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/m_testline.c b/modules/m_testline.c index 99bcc20d..a55367f1 100644 --- a/modules/m_testline.c +++ b/modules/m_testline.c @@ -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; @@ -269,7 +275,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 +288,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 {