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
@@ -753,11 +753,18 @@ class CAdminMod : public CModule {
return;
}
if (!(pUser->FindNetwork(sNetwork))) {
CIRCNetwork* pNetwork = pUser->FindNetwork(sNetwork);
if (!pNetwork) {
PutModule(pUser->GetUserName() + " does not have a network named [" + sNetwork + "]");
return;
}
if (pNetwork == m_pNetwork) {
PutModule("Currently active network can be deleted via *status");
return;
}
if (pUser->DeleteNetwork(sNetwork)) {
PutModule("Network deleted [" + sNetwork + "]");
} else {
@@ -1126,7 +1133,7 @@ public:
};
template<> void TModInfo<CAdminMod>(CModInfo& Info) {
Info.SetWikiPage("controlpanel");
Info.SetWikiPage("control");
}
USERMODULEDEFS(CAdminMod, "Dynamic configuration through IRC. Allows editing only yourself if you're not ZNC admin.")