mirror of
https://github.com/znc/znc.git
synced 2026-08-10 02:43:05 +02: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:
@@ -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.")
|
||||
Reference in New Issue
Block a user