Revert StripControls implementation (#850)

This reverts commits 27d78795a7 and
f27109f1b4. It was decided that the
functionality is provided by a separate module instead, to avoid
unnecessarily bloating the core.
This commit is contained in:
J-P Nurmi
2015-03-04 09:41:52 +01:00
parent a67f929b7d
commit a5b4a29c00
8 changed files with 1 additions and 124 deletions
+1 -19
View File
@@ -121,7 +121,6 @@ class CAdminMod : public CModule {
{"Encoding", str},
#endif
{"QuitMsg", str},
{"StripControls", boolean},
};
PrintVarsHelp(sVarFilter, nvars, ARRAY_SIZE(nvars), "The following variables are available when using the SetNetwork/GetNetwork commands:");
}
@@ -133,8 +132,7 @@ class CAdminMod : public CModule {
{"Buffer", integer},
{"InConfig", boolean},
{"AutoClearChanBuffer", boolean},
{"Detached", boolean},
{"StripControls", boolean},
{"Detached", boolean}
};
PrintVarsHelp(sVarFilter, cvars, ARRAY_SIZE(cvars), "The following variables are available when using the SetChan/GetChan commands:");
}
@@ -498,8 +496,6 @@ class CAdminMod : public CModule {
#endif
} else if (sVar.Equals("quitmsg")) {
PutModule("QuitMsg = " + pNetwork->GetQuitMsg());
} else if (sVar.Equals("stripcontrols")) {
PutModule("StripControls = " + CString(pNetwork->StripControls()));
} else {
PutModule("Error: Unknown variable");
}
@@ -593,10 +589,6 @@ class CAdminMod : public CModule {
} else if (sVar.Equals("quitmsg")) {
pNetwork->SetQuitMsg(sValue);
PutModule("QuitMsg = " + pNetwork->GetQuitMsg());
} else if (sVar == "stripcontrols") {
bool b = sValue.ToBool();
pNetwork->SetStripControls(b);
PutModule("StripControls = " + CString(b));
} else {
PutModule("Error: Unknown variable");
}
@@ -716,12 +708,6 @@ class CAdminMod : public CModule {
PutModule(pChan->GetName() + ": AutoClearChanBuffer = " + sValue);
} else if (sVar == "detached") {
PutModule(pChan->GetName() + ": Detached = " + CString(pChan->IsDetached()));
} else if (sVar == "stripcontrols") {
CString sValue(pChan->StripControls());
if (!pChan->HasStripControlsSet()) {
sValue += " (default)";
}
PutModule(pChan->GetName() + ": StripControls = " + sValue);
} else if (sVar == "key") {
PutModule(pChan->GetName() + ": Key = " + pChan->GetKey());
} else {
@@ -793,10 +779,6 @@ class CAdminMod : public CModule {
pChan->AttachUser();
}
PutModule(pChan->GetName() + ": Detached = " + CString(b));
} else if (sVar == "stripcontrols") {
bool b = sValue.ToBool();
pChan->SetStripControls(b);
PutModule(pChan->GetName() + ": StripControls = " + CString(b));
} else if (sVar == "key") {
pChan->SetKey(sValue);
PutModule(pChan->GetName() + ": Key = " + sValue);