mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add "Loaded" flag to the network page.
This commit is contained in:
@@ -749,9 +749,15 @@ public:
|
||||
if (pModule) {
|
||||
l["Checked"] = "true";
|
||||
l["Args"] = pModule->GetArgs();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check if module is loaded globally
|
||||
l["LoadedGlobally"] = CString(CZNC::Get().GetModules().FindModule(Info.GetName()) != NULL);
|
||||
|
||||
// Check if module is loaded by user
|
||||
l["LoadedByUser"] = CString(pUser->GetModules().FindModule(Info.GetName()) != NULL);
|
||||
|
||||
if (!spSession->IsAdmin() && pUser->DenyLoadMod()) {
|
||||
l["Disabled"] = "true";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user