Better handling of deletion of servers

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@656 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-02-14 07:07:30 +00:00
parent 51021e706b
commit e03604de6d
2 changed files with 29 additions and 5 deletions
+4 -3
View File
@@ -190,7 +190,7 @@ void CClient::ReadLine(const CString& sData) {
sLine += " :" + sMessage;
}
} else if (sCommand.CaseCmp("QUIT") == 0) {
if (m_pIRCSock) {
if (m_pUser) {
m_pUser->UserDisconnected(this);
}
@@ -1232,11 +1232,12 @@ void CClient::ConnectionRefused() {
}
void CClient::Disconnected() {
if (m_pIRCSock) {
if (m_pUser) {
m_pUser->UserDisconnected(this);
m_pIRCSock = NULL;
}
m_pIRCSock = NULL;
#ifdef _MODULES
CZNC::Get().GetModules().SetClient(this);
VOIDMODULECALL(OnUserDetached());