Instead of (ab)using a CClient for listening, use an own class this job

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1178 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-08-29 18:51:08 +00:00
parent da8c892d4f
commit d4cd78a43b
3 changed files with 28 additions and 31 deletions
-11
View File
@@ -601,11 +601,6 @@ bool CClient::SendMotd() {
return true;
}
bool CClient::ConnectionFrom(const CString& sHost, unsigned short uPort) {
DEBUG_ONLY(cout << GetSockName() << " == ConnectionFrom(" << sHost << ", " << uPort << ")" << endl);
return CZNC::Get().IsHostAllowed(sHost);
}
void CClient::AuthUser() {
/*
#ifdef _MODULES
@@ -729,12 +724,6 @@ void CClient::IRCDisconnected() {
m_pIRCSock = NULL;
}
Csock* CClient::GetSockObj(const CString& sHost, unsigned short uPort) {
CClient* pSock = new CClient(sHost, uPort);
pSock->StartLoginTimeout();
return pSock;
}
void CClient::PutIRC(const CString& sLine) {
if (m_pIRCSock) {
m_pIRCSock->PutIRC(sLine);