Skip to content
Browse files

Oh, I forgot to add a back-compatibility crap.

  • Loading branch information...
1 parent 691785f commit 395ae4fc9f783f5ecb5f8317047739bd10a52075 @DarthGandalf DarthGandalf committed Aug 16, 2012
Showing with 7 additions and 1 deletion.
  1. +1 −1 modules/controlpanel.cpp
  2. +6 −0 src/User.cpp
View
2 modules/controlpanel.cpp
@@ -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.")
View
6 src/User.cpp
@@ -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);

0 comments on commit 395ae4f

Please sign in to comment.
Something went wrong with that request. Please try again.