mirror of
https://github.com/znc/znc.git
synced 2026-05-01 11:02:27 +02:00
Added AutoCycle to CUser
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@411 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
9
znc.cpp
9
znc.cpp
@@ -589,7 +589,6 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
|
||||
CString sLine;
|
||||
bool bCommented = false; // support for /**/ style comments
|
||||
bool bAutoCycle = true;
|
||||
CUser* pUser = NULL; // Used to keep track of which user block we are in
|
||||
CChan* pChan = NULL; // Used to keep track of which chan block we are in
|
||||
|
||||
@@ -671,7 +670,6 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
|
||||
pUser = new CUser(sValue, this);
|
||||
CUtils::PrintMessage("Loading user [" + sValue + "]");
|
||||
bAutoCycle = true;
|
||||
|
||||
if (!sStatusPrefix.empty()) {
|
||||
if (!pUser->SetStatusPrefix(sStatusPrefix)) {
|
||||
@@ -693,7 +691,6 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
}
|
||||
|
||||
pChan = new CChan(sValue, pUser);
|
||||
pChan->SetAutoCycle(bAutoCycle);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -737,6 +734,9 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
} 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;
|
||||
@@ -765,9 +765,6 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
} else if (sName.CaseCmp("BounceDCCs") == 0) {
|
||||
pUser->SetBounceDCCs(sValue.CaseCmp("true") == 0);
|
||||
continue;
|
||||
} else if (sName.CaseCmp("AutoCycle") == 0) {
|
||||
bAutoCycle = (sValue.CaseCmp("true") == 0);
|
||||
continue;
|
||||
} else if (sName.CaseCmp("Ident") == 0) {
|
||||
pUser->SetIdent(sValue);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user