mirror of
https://github.com/znc/znc.git
synced 2026-07-21 09:03:32 +02:00
Merge pull request #1472 from GLolol/notice-failed-logins
src/Client: send failed logins to NOTICE instead of PRIVMSG
This commit is contained in:
+3
-4
@@ -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