mirror of
https://github.com/znc/znc.git
synced 2026-07-04 00:41:38 +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:
@@ -25,12 +25,12 @@ public:
|
||||
|
||||
void OnIRCDisconnected()
|
||||
{
|
||||
const vector<CChan*>& vChans = m_pNetwork->GetChans();
|
||||
const vector<CChan*>& vChans = GetNetwork()->GetChans();
|
||||
|
||||
for(vector<CChan*>::const_iterator it = vChans.begin(); it != vChans.end(); ++it)
|
||||
{
|
||||
if((*it)->IsOn()) {
|
||||
PutUser(":ZNC!znc@znc.in KICK " + (*it)->GetName() + " " + m_pNetwork->GetIRCNick().GetNick()
|
||||
PutUser(":ZNC!znc@znc.in KICK " + (*it)->GetName() + " " + GetNetwork()->GetIRCNick().GetNick()
|
||||
+ " :You have been disconnected from the IRC server");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user