Make disconkick a module again.

While not kicking upon disconnect can cause desync with client and other
issues, there were multiple complains about the new behavior, and the
user should have the choice.

Revert 2f65dbbc64
Ref #968
This commit is contained in:
Alexey Sokolov
2017-08-26 21:46:55 +01:00
parent bb27cd964c
commit a719ea36aa
3 changed files with 46 additions and 18 deletions

View File

@@ -1217,16 +1217,6 @@ void CIRCSock::Disconnected() {
m_pNetwork->ClearRawBuffer();
m_pNetwork->ClearMotdBuffer();
CString sPrefix = m_pNetwork->GetUser()->GetStatusPrefix();
for (CChan* pChan : m_pNetwork->GetChans()) {
if (pChan->IsOn()) {
m_pNetwork->PutUser(
":" + sPrefix + "status!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.