Send a 464 ERR_PASSWDMISMATCH to clients which do not supply a password

"Returned to indicate a failed attempt at registering a connection for
which a password was required and was either not given or incorrect."
This commit is contained in:
Kyle Fuller
2012-06-02 13:31:49 +01:00
parent 8231abfe55
commit 283fe7a72b

View File

@@ -133,6 +133,7 @@ void CClient::ReadLine(const CString& sData) {
if (m_bGotPass) {
AuthUser();
} else {
PutClient(":irc.znc.in 464 " + GetNick() + " :Password required");
PutClient(":irc.znc.in NOTICE AUTH :*** "
"You need to send your password. "
"Try /quote PASS <username>:<password>");