summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/container.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-22 12:52:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-22 12:52:22 +0300
commitbb0498bf6aa0accd22bbc19091a12d54602a52be (patch)
tree121ce8d5ad87121bb7dd18d5ba8be657a23606b0 /plugins/TabSRMM/src/container.cpp
parent3bb36572408b63efac44da01a26c9bfa3d3b5e79 (diff)
tabSRMM: removed all checks if m_hContact == 0, because it never happens
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r--plugins/TabSRMM/src/container.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index d83419ae9f..eed9366ed2 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -1394,7 +1394,7 @@ panel_found:
db_unset(dat->m_hContact, SRMSGMOD_T, "tabindex");
break;
case ID_TABMENU_LEAVECHATROOM:
- if (dat && dat->isChat() && dat->m_hContact) {
+ if (dat && dat->isChat()) {
char *szProto = Proto_GetBaseAccountName(dat->m_hContact);
if (szProto)
CallProtoService(szProto, PS_LEAVECHAT, dat->m_hContact, 0);