mirror of
https://github.com/znc/znc.git
synced 2026-07-03 08:21:57 +02:00
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:
-11
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user