Add the OnIRCConnectionError(CIRCSock *pIRCSock) module hook

This commit is contained in:
Kyle Fuller
2011-03-29 21:38:13 +01:00
parent 0ff6cd7491
commit 7162b01111
9 changed files with 18 additions and 0 deletions
+4
View File
@@ -51,6 +51,10 @@ CIRCSock::CIRCSock(CUser* pUser) : CZNCSock() {
}
CIRCSock::~CIRCSock() {
if (!m_bAuthed) {
MODULECALL(OnIRCConnectionError(this), m_pUser, NULL, NOTHING);
}
const vector<CChan*>& vChans = m_pUser->GetChans();
for (unsigned int a = 0; a < vChans.size(); a++) {
vChans[a]->Reset();