mirror of
https://github.com/znc/znc.git
synced 2026-06-27 13:31:32 +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:
@@ -22,11 +22,11 @@ public:
|
||||
MODCONSTRUCTOR(CNotifyConnectMod) {}
|
||||
|
||||
virtual void OnClientLogin() {
|
||||
SendAdmins(m_pUser->GetUserName() + " attached (from " + m_pClient->GetRemoteIP() + ")");
|
||||
SendAdmins(GetUser()->GetUserName() + " attached (from " + GetClient()->GetRemoteIP() + ")");
|
||||
}
|
||||
|
||||
virtual void OnClientDisconnect() {
|
||||
SendAdmins(m_pUser->GetUserName() + " detached (from " + m_pClient->GetRemoteIP() + ")");
|
||||
SendAdmins(GetUser()->GetUserName() + " detached (from " + GetClient()->GetRemoteIP() + ")");
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user