]> jfr.im git - solanum.git/commitdiff
m_webirc: enforce need_ssl
authorEd Kellett <redacted>
Sun, 9 Jun 2019 00:11:58 +0000 (01:11 +0100)
committerEd Kellett <redacted>
Sun, 20 Oct 2019 17:17:33 +0000 (18:17 +0100)
extensions/m_webirc.c

index 499c40596df40957fdb4116a89b77df74348b63c..1b48e3cb4dd5ea0fa1633b4f9a57f9434ce037e3 100644 (file)
@@ -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 = "";