From ab4420cbbe6c1a41f473cb81adedc81182448781 Mon Sep 17 00:00:00 2001 From: Ed Kellett Date: Sun, 9 Jun 2019 01:11:58 +0100 Subject: [PATCH] m_webirc: enforce need_ssl --- extensions/m_webirc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/m_webirc.c b/extensions/m_webirc.c index 499c4059..1b48e3cb 100644 --- a/extensions/m_webirc.c +++ b/extensions/m_webirc.c @@ -98,6 +98,11 @@ mr_webirc(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sourc sendto_one(source_p, "NOTICE * :CGI:IRC auth blocks must have a password"); return; } + if (!IsSSL(source_p) && aconf->flags & CONF_FLAGS_NEED_SSL) + { + sendto_one(source_p, "NOTICE * :Your CGI:IRC block requires SSL"); + return; + } if (EmptyString(parv[1])) encr = "";