mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +02:00
Oh, I forgot to add a back-compatibility crap.
This commit is contained in:
@@ -1130,4 +1130,4 @@ template<> void TModInfo<CAdminMod>(CModInfo& Info) {
|
||||
Info.SetWikiPage("admin");
|
||||
}
|
||||
|
||||
USERMODULEDEFS(CAdminMod, "Dynamic configuration of users/settings through IRC. Allows editing only yourself if you're not ZNC admin.")
|
||||
USERMODULEDEFS(CAdminMod, "Dynamic configuration through IRC. Allows editing only yourself if you're not ZNC admin.")
|
||||
|
||||
@@ -371,6 +371,12 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// XXX Legacy crap, added in ZNC 0.207
|
||||
if (sModName == "admin") {
|
||||
CUtils::PrintMessage("NOTICE: [admin] module was renamed, loading [controlpanel] instead");
|
||||
sModName = "controlpanel";
|
||||
}
|
||||
|
||||
CUtils::PrintAction("Loading Module [" + sModName + "]");
|
||||
CString sModRet;
|
||||
CString sArgs = sValue.Token(1, true);
|
||||
|
||||
Reference in New Issue
Block a user