From 9d2e66c08d51216b3fe99b4c62d97eb1d09294bb Mon Sep 17 00:00:00 2001 From: Jess Porter Date: Fri, 1 Jul 2022 00:02:53 +0100 Subject: [PATCH] ERROR instead of NOTICE for failed WEBIRC --- extensions/m_webirc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/m_webirc.c b/extensions/m_webirc.c index d0b648c3..f999996c 100644 --- a/extensions/m_webirc.c +++ b/extensions/m_webirc.c @@ -106,17 +106,17 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc if (!IsConfDoSpoofIp(aconf) || irccmp(aconf->info.name, "webirc.")) { /* XXX */ - sendto_one(source_p, "NOTICE * :Not a CGI:IRC auth block"); + exit_client(client_p, source_p, &me, "Not a CGI:IRC auth block"); return; } if (EmptyString(aconf->passwd)) { - sendto_one(source_p, "NOTICE * :CGI:IRC auth blocks must have a password"); + exit_client(client_p, source_p, &me, "CGI:IRC auth blocks must have a password"); return; } if (!IsSecure(source_p) && aconf->flags & CONF_FLAGS_NEED_SSL) { - sendto_one(source_p, "NOTICE * :Your CGI:IRC block requires TLS"); + exit_client(client_p, source_p, &me, "Your CGI:IRC block requires TLS"); return; } @@ -129,13 +129,13 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc if (encr == NULL || strcmp(encr, aconf->passwd)) { - sendto_one(source_p, "NOTICE * :CGI:IRC password incorrect"); + exit_client(client_p, source_p, &me, "CGI:IRC password incorrect"); return; } if (rb_inet_pton_sock(parv[4], &addr) <= 0) { - sendto_one(source_p, "NOTICE * :Invalid IP"); + exit_client(client_p, source_p, &me, "Invalid IP"); return; }