mirror of
https://github.com/znc/znc.git
synced 2026-08-05 00:13:22 +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:
@@ -44,7 +44,7 @@ public:
|
||||
}
|
||||
|
||||
void OnModCommand(const CString& sCommand) {
|
||||
if (m_pUser->IsAdmin()) {
|
||||
if (GetUser()->IsAdmin()) {
|
||||
HandleCommand(sCommand);
|
||||
} else {
|
||||
PutModule("Access denied");
|
||||
|
||||
Reference in New Issue
Block a user