Rename controlpanel to control, fix #240

It's just a shorter name, and hopefully still not as confusing as old
"admin".

Also unrelated change: fix case of few output lines during startup.
This commit is contained in:
Alexey Sokolov
2012-10-19 22:14:14 +07:00
parent ed83ac632d
commit 4f1fd1f6db
4 changed files with 22 additions and 15 deletions

View File

@@ -376,12 +376,12 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
}
// XXX Legacy crap, added in ZNC 0.207
if (sModName == "admin") {
CUtils::PrintMessage("NOTICE: [admin] module was renamed, loading [controlpanel] instead");
sModName = "controlpanel";
if (sModName == "admin" || sModName == "controlpanel") {
CUtils::PrintMessage("NOTICE: [admin] module was renamed, loading [control] instead");
sModName = "control";
}
CUtils::PrintAction("Loading Module [" + sModName + "]");
CUtils::PrintAction("Loading user module [" + sModName + "]");
CString sModRet;
CString sArgs = sValue.Token(1, true);
bool bModRet = true;