Integrate disconkick module to core.

Fix #968
This commit is contained in:
Alexey Sokolov
2015-06-04 22:02:39 +01:00
parent f8f097a5db
commit 2f65dbbc64
3 changed files with 15 additions and 44 deletions

View File

@@ -1102,6 +1102,13 @@ void CIRCSock::Disconnected() {
m_pNetwork->ClearRawBuffer();
m_pNetwork->ClearMotdBuffer();
for (CChan* pChan : m_pNetwork->GetChans()) {
if(pChan->IsOn()) {
m_pNetwork->PutUser(":ZNC!znc@znc.in KICK " + pChan->GetName() + " " + GetNick()
+ " :You have been disconnected from the IRC server");
}
}
ResetChans();
// send a "reset user modes" cmd to the client.