mirror of
https://github.com/znc/znc.git
synced 2026-06-29 22:41:39 +02:00
Check for m_pNetwork being not null in several more places
I don't know whether these are crasheable, but now they will definitely be not.
This commit is contained in:
@@ -862,6 +862,9 @@ void CClient::ClearServerDependentCaps() {
|
||||
|
||||
template <typename T>
|
||||
void CClient::AddBuffer(const T& Message) {
|
||||
if (!m_pNetwork) {
|
||||
return;
|
||||
}
|
||||
const CString sTarget = Message.GetTarget();
|
||||
|
||||
T Format;
|
||||
@@ -898,6 +901,9 @@ void CClient::EchoMessage(const CMessage& Message) {
|
||||
}
|
||||
|
||||
set<CChan*> CClient::MatchChans(const CString& sPatterns) const {
|
||||
if (!m_pNetwork) {
|
||||
return {};
|
||||
}
|
||||
VCString vsPatterns;
|
||||
sPatterns.Replace_n(",", " ")
|
||||
.Split(" ", vsPatterns, false, "", "", true, true);
|
||||
|
||||
Reference in New Issue
Block a user