Skip to content

Commit

Permalink
Send a 464 ERR_PASSWDMISMATCH to clients which do not supply a password
Browse files Browse the repository at this point in the history
"Returned to indicate a failed attempt at registering a connection for
which a password was required and was either not given or incorrect."
  • Loading branch information
kylef committed Jun 2, 2012
1 parent 8231abf commit 283fe7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.cpp
Expand Up @@ -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>");
Expand Down

0 comments on commit 283fe7a

Please sign in to comment.