mirror of
https://github.com/znc/znc.git
synced 2026-05-04 12:32:33 +02:00
Modules: use public API
Avoid accessing protected member variables directly, so there's a chance of cleaning up the module API later.
This commit is contained in:
@@ -36,7 +36,7 @@ public:
|
||||
PutModule("You have a certificate in: " + PemFile());
|
||||
} else {
|
||||
PutModule("You do not have a certificate. Please use the web interface to add a certificate");
|
||||
if (m_pUser->IsAdmin()) {
|
||||
if (GetUser()->IsAdmin()) {
|
||||
PutModule("Alternatively you can either place one at " + PemFile());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user