mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Add the remote ip to the info CAuthBase got
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1112 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -1848,6 +1848,11 @@ void CAuthBase::AuthUser(CSmartPtr<CAuthBase> AuthClass) {
|
||||
}
|
||||
}
|
||||
|
||||
CClientAuth::CClientAuth(CClient* pClient, const CString& sUsername, const CString& sPassword)
|
||||
: CAuthBase(sUsername, sPassword, pClient->GetRemoteIP()) {
|
||||
m_pClient = pClient;
|
||||
}
|
||||
|
||||
void CClientAuth::RefuseLogin(const CString& sReason) {
|
||||
if (m_pClient) {
|
||||
m_pClient->RefuseLogin(sReason);
|
||||
|
||||
Reference in New Issue
Block a user