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:
1 parent
d9ae3fa7c8
commit
1bacec1dd3
40 files changed
+291
-270
No files matched your search
@@ -27,7 +27,7 @@ public:
|
||||
|
||||
void AddBuffer(CChan& Channel, const CString& sMessage) {
|
||||
// If they have AutoClearChanBuffer enabled, only add messages if no client is connected
|
||||
if (Channel.AutoClearChanBuffer() && m_pNetwork->IsUserOnline())
|
||||
if (Channel.AutoClearChanBuffer() && GetNetwork()->IsUserOnline())
|
||||
return;
|
||||
|
||||
Channel.AddBuffer(":" + GetModNick() + "!" + GetModName() + "@znc.in PRIVMSG " + _NAMEDFMT(Channel.GetName()) + " :{text}", sMessage);
|
||||
|
||||
Reference in new issue
Block a user