diff --git a/Client.cpp b/Client.cpp index a514099d..6d315d88 100644 --- a/Client.cpp +++ b/Client.cpp @@ -628,14 +628,14 @@ void CClientAuth::RefusedLogin(const CString& sReason) { } void CAuthBase::RefuseLogin(const CString& sReason) { - CUser* pUser = GetUser(GetUsername()); + CUser* pUser = CZNC::Get().GetUser(GetUsername()); // If the username is valid, notify that user that someone tried to // login. Use sReason because there are other reasons than "wrong // password" for a login to be rejected (e.g. fail2ban). if (pUser) { - pUser->PutStatus("Another client attempted to login as you [" - + sReason + "]."); + pUser->PutStatus("A client from [" + GetRemoteIP() + "] attempted " + "to login as you, but was rejected [" + sReason + "]."); } #ifdef _MODULES