mirror of
https://github.com/znc/znc.git
synced 2026-08-07 09:22:55 +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:
@@ -49,7 +49,7 @@ public:
|
||||
}
|
||||
|
||||
void Handle(const CString& sNick) {
|
||||
CIRCSock *pIRCSock = m_pNetwork->GetIRCSock();
|
||||
CIRCSock *pIRCSock = GetNetwork()->GetIRCSock();
|
||||
if (!pIRCSock)
|
||||
// WTF?
|
||||
return;
|
||||
@@ -58,7 +58,7 @@ public:
|
||||
if (m_Messaged.HasItem(sNick))
|
||||
return;
|
||||
|
||||
if (m_pNetwork->IsUserAttached())
|
||||
if (GetNetwork()->IsUserAttached())
|
||||
return;
|
||||
|
||||
m_Messaged.AddItem(sNick);
|
||||
|
||||
Reference in New Issue
Block a user