mirror of
https://github.com/znc/znc.git
synced 2026-05-04 04:22:37 +02:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user