summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-16 21:19:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-16 21:19:07 +0300
commitfae29d175eefe37910e61e9a770cd9c2eed6d68d (patch)
tree4689e328efa27f4a602765b0c1e5d76e9d39a192 /protocols/IRCG
parent38cc6ba3c3f5cb41d491df8414b270158152f3da (diff)
fixes #1493 (Miranda IRC protocol crash when checking channel modes)
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp
index 6a388da899..464ed5bea1 100644
--- a/protocols/IRCG/src/commandmonitor.cpp
+++ b/protocols/IRCG/src/commandmonitor.cpp
@@ -1553,7 +1553,7 @@ bool CIrcProto::OnIrc_LISTEND(const CIrcMessage *pmsg)
bool CIrcProto::OnIrc_BANLIST(const CIrcMessage *pmsg)
{
- if (pmsg->m_bIncoming && pmsg->parameters.getCount() > 2) {
+ if (m_managerDlg && pmsg->m_bIncoming && pmsg->parameters.getCount() > 2) {
if (m_managerDlg->GetHwnd() && (
m_managerDlg->m_radio1.GetState() && pmsg->sCommand == L"367" ||
m_managerDlg->m_radio2.GetState() && pmsg->sCommand == L"346" ||
@@ -1582,7 +1582,7 @@ bool CIrcProto::OnIrc_BANLIST(const CIrcMessage *pmsg)
bool CIrcProto::OnIrc_BANLISTEND(const CIrcMessage *pmsg)
{
- if (pmsg->m_bIncoming && pmsg->parameters.getCount() > 1) {
+ if (m_managerDlg && pmsg->m_bIncoming && pmsg->parameters.getCount() > 1) {
if (m_managerDlg->GetHwnd() &&
(m_managerDlg->m_radio1.GetState() && pmsg->sCommand == L"368"
|| m_managerDlg->m_radio2.GetState() && pmsg->sCommand == L"347"