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
+7
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.
+8
View File
@@ -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);