Add "Loaded" flag to the network page.

This commit is contained in:
Vasily Fomin
2014-05-29 17:37:25 +02:00
parent 4bdaa3cc22
commit 78f7897dfc
2 changed files with 19 additions and 1 deletions

View File

@@ -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";
}