mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user