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:
psychon
2008-07-07 18:24:38 +00:00
parent 5c7b586b2d
commit 5e0c652b9a
3 changed files with 20 additions and 12 deletions
+5
View File
@@ -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);