mirror of
https://github.com/znc/znc.git
synced 2026-07-05 09:21:31 +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:
@@ -77,7 +77,7 @@ public:
|
||||
if (it->second.first + (time_t)m_iThresholdSecs >= now)
|
||||
continue;
|
||||
|
||||
CChan *pChan = m_pNetwork->FindChan(it->first);
|
||||
CChan *pChan = GetNetwork()->FindChan(it->first);
|
||||
if (it->second.second >= m_iThresholdMsgs
|
||||
&& pChan && pChan->IsDetached()) {
|
||||
// The channel is detached and it is over the
|
||||
|
||||
Reference in New Issue
Block a user