]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
m_webirc: enforce need_ssl
authorEd Kellett <redacted>
Sun, 9 Jun 2019 00:11:58 +0000 (01:11 +0100)
committerEd Kellett <redacted>
Wed, 12 Jun 2019 20:25:19 +0000 (21:25 +0100)
extensions/m_webirc.c

index 6f57e920740bc259cc26a680e4236cb22adde731..1fc60d80a011ef5ac7fb0f8d0f801404a6edd410 100644 (file)
@@ -102,6 +102,11 @@ mr_webirc(struct Client *client_p, struct Client *source_p, int parc, const char
                sendto_one(source_p, "NOTICE * :CGI:IRC auth blocks must have a password");
                return 0;
        }
+       if (!IsSSL(source_p) && aconf->flags & CONF_FLAGS_NEED_SSL)
+       {
+               sendto_one(source_p, "NOTICE * :Your CGI:IRC block requires SSL");
+               return 0;
+       }
 
        if (EmptyString(parv[1]))
                encr = "";