Use a better error message for browsers connecting to IRC only listener ports.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1971 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
cflakes
2010-05-09 17:51:06 +00:00
parent 3b9392a0b3
commit 53aeceb6bc

View File

@@ -100,7 +100,7 @@ void CIncomingConnection::ReadLine(const CString& sLine) {
// This is a HTTP request, let the webmods handle it
if (!bAcceptHTTP) {
Write("HTTP/1.0 403 Access Denied\r\n\r\nNo HTTP requests allowed\r\n");
Write("HTTP/1.0 403 Access Denied\r\n\r\nWeb Access is not enabled.\r\n");
Close(CLT_AFTERWRITE);
DEBUG("Refused HTTP connection to non HTTP port");