Add "Loaded" flag to the network page.

This commit is contained in:
Vasily Fomin committed 2014-05-29 17:39:48 +02:00
1 parent 4bdaa3cc22
commit 78f7897dfc
2 files changed
+19 -1

No files matched your search

+7 -1
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";
}