CClient: Use CUser's IRC Socket pointer

CUser already saves the pointer to the IRC socket, so why would CClient's have
to do the same?


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1725 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-01-28 19:44:37 +00:00
parent b50d944bb9
commit f99e5190cd
4 changed files with 11 additions and 27 deletions

View File

@@ -166,19 +166,11 @@ void CUser::DelServers()
void CUser::IRCConnected(CIRCSock* pIRCSock) {
m_pIRCSock = pIRCSock;
for (unsigned int a = 0; a < m_vClients.size(); a++) {
m_vClients[a]->IRCConnected(pIRCSock);
}
}
void CUser::IRCDisconnected() {
m_pIRCSock = NULL;
for (unsigned int a = 0; a < m_vClients.size(); a++) {
m_vClients[a]->IRCDisconnected();
}
SetIRCServer("");
m_bIRCAway = false;