mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
src/Client: send failed logins to NOTICE instead of PRIVMSG
When connecting to many ZNC networks at once, one failed login causes numerous query windows from *status to pop up. These can be annoying to close depending on the client.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user