mirror of
https://github.com/znc/znc.git
synced 2026-08-02 23:12:46 +02:00
Add the OnIRCConnectionError(CIRCSock *pIRCSock) module hook
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user