mirror of
https://github.com/znc/znc.git
synced 2026-08-08 18:03: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:
@@ -142,7 +142,7 @@ protected:
|
||||
|
||||
// Is that person us and we don't have op?
|
||||
const CNick& pNick = Channel.GetNicks().begin()->second;
|
||||
if (!pNick.HasPerm(CChan::Op) && pNick.NickEquals(m_pNetwork->GetCurNick())) {
|
||||
if (!pNick.HasPerm(CChan::Op) && pNick.NickEquals(GetNetwork()->GetCurNick())) {
|
||||
Channel.Cycle();
|
||||
m_recentlyCycled.AddItem(Channel.GetName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user