mirror of
https://github.com/znc/znc.git
synced 2026-08-06 17:03:14 +02:00
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:
+4
-3
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user