mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user