m_webirc: enforce need_ssl

This commit is contained in:
Ed Kellett 2019-06-09 01:11:58 +01:00
parent a5c6d66ac8
commit ab4420cbbe
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View 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"); sendto_one(source_p, "NOTICE * :CGI:IRC auth blocks must have a password");
return; 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])) if (EmptyString(parv[1]))
encr = ""; encr = "";