mirror of
https://github.com/znc/znc.git
synced 2026-07-05 01:11:53 +02: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.
|
||||
|
||||
@@ -376,6 +376,7 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
|
||||
// XXX Legacy crap, added in ZNC 0.099
|
||||
if (sModName == "fixfreenode") {
|
||||
sNotice = "NOTICE: [fixfreenode] doesn't do anything useful anymore, ignoring it";
|
||||
CUtils::PrintMessage(sNotice);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -419,6 +420,13 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// XXX Legacy crap, added in 1.7
|
||||
if (sModName == "disconkick") {
|
||||
sNotice = "NOTICE: [disconkick] is integrated to core now, ignoring it";
|
||||
CUtils::PrintMessage(sNotice);
|
||||
continue;
|
||||
}
|
||||
|
||||
CString sModRet;
|
||||
CString sArgs = sMod.Token(1, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user