Merge pull request #1472 from GLolol/notice-failed-logins

src/Client: send failed logins to NOTICE instead of PRIVMSG
This commit is contained in:
Alexey Sokolov
2017-12-17 02:28:52 +00:00
committed by GitHub
+3 -4
View File
@@ -368,10 +368,9 @@ void CAuthBase::RefuseLogin(const CString& sReason) {
// login. Use sReason because there are other reasons than "wrong
// password" for a login to be rejected (e.g. fail2ban).
if (pUser) {
pUser->PutStatus("A client from [" + GetRemoteIP() +
"] attempted "
"to login as you, but was rejected [" +
sReason + "].");
pUser->PutStatusNotice("A client from [" + GetRemoteIP() + "] attempted "
"to login as you, but was rejected [" +
sReason + "].");
}
GLOBALMODULECALL(OnFailedLogin(GetUsername(), GetRemoteIP()), NOTHING);