mirror of
https://github.com/znc/znc.git
synced 2026-05-05 21:12:37 +02:00
Fix some minor issues
E.g. a gcc warning about an uninitialized variable. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
@@ -728,12 +728,12 @@ public:
|
||||
l["Description"] = Info.GetDescription();
|
||||
l["Wiki"] = Info.GetWikiPage();
|
||||
|
||||
if (pUser && pUser->GetModules().FindModule(Info.GetName())) {
|
||||
CModule *pModule = pUser->GetModules().FindModule(Info.GetName());
|
||||
if (pModule) {
|
||||
l["Checked"] = "true";
|
||||
l["Args"] = pModule->GetArgs();
|
||||
}
|
||||
CModule *pModule = NULL;
|
||||
if (pUser)
|
||||
pModule = pUser->GetModules().FindModule(Info.GetName());
|
||||
if (pModule) {
|
||||
l["Checked"] = "true";
|
||||
l["Args"] = pModule->GetArgs();
|
||||
}
|
||||
|
||||
if (!spSession->IsAdmin() && pUser && pUser->DenyLoadMod()) {
|
||||
|
||||
Reference in New Issue
Block a user