Removed AutoCycle from core

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1191 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
kroimon
2008-09-07 11:23:57 +00:00
parent df27598832
commit d1b3c2b94d
6 changed files with 10 additions and 43 deletions
+8 -4
View File
@@ -1134,7 +1134,9 @@ bool CZNC::DoRehash(CString& sError)
pChan->SetDetached((sValue.CaseCmp("true") == 0));
continue;
} else if (sName.CaseCmp("AutoCycle") == 0) {
pChan->SetAutoCycle((sValue.CaseCmp("true") == 0));
if (sValue.CaseCmp("true") == 0) {
CUtils::PrintError("WARNING: AutoCycle has been removed, instead try -> LoadModule = autocycle " + pChan->GetName());
}
continue;
} else if (sName.CaseCmp("Key") == 0) {
pChan->SetKey(sValue);
@@ -1150,9 +1152,6 @@ bool CZNC::DoRehash(CString& sError)
} else if (sName.CaseCmp("KeepBuffer") == 0) {
pUser->SetKeepBuffer((sValue.CaseCmp("true") == 0));
continue;
} else if (sName.CaseCmp("AutoCycle") == 0) {
pUser->SetAutoCycle((sValue.CaseCmp("true") == 0));
continue;
} else if (sName.CaseCmp("Nick") == 0) {
pUser->SetNick(sValue);
continue;
@@ -1168,6 +1167,11 @@ bool CZNC::DoRehash(CString& sError)
} else if (sName.CaseCmp("AwaySuffix") == 0) {
CUtils::PrintMessage("WARNING: AwaySuffix has been depricated, instead try -> LoadModule = awaynick %nick%_" + sValue);
continue;
} else if (sName.CaseCmp("AutoCycle") == 0) {
if (sValue.CaseCmp("true") == 0) {
CUtils::PrintError("WARNING: AutoCycle has been removed, instead try -> LoadModule = autocycle");
}
continue;
} else if (sName.CaseCmp("Pass") == 0) {
// There are different formats for this available:
// Pass = <plain text>