diff options
-rw-r--r-- | protocols/JabberG/src/jabber_events.cpp | 3 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_groupchat.cpp | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp index d2a863bfa5..ed4976e769 100644 --- a/protocols/JabberG/src/jabber_events.cpp +++ b/protocols/JabberG/src/jabber_events.cpp @@ -55,9 +55,6 @@ void CJabberProto::OnContactDeleted(MCONTACT hContact) ListRemove(LIST_ROSTER, jid);
}
-
- if (isChatRoom(hContact))
- ListRemove(LIST_CHATROOM, jid);
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp index 82147b8d1a..81f432bc0f 100644 --- a/protocols/JabberG/src/jabber_groupchat.cpp +++ b/protocols/JabberG/src/jabber_groupchat.cpp @@ -206,13 +206,11 @@ INT_PTR __cdecl CJabberProto::OnJoinChat(WPARAM hContact, LPARAM) INT_PTR __cdecl CJabberProto::OnLeaveChat(WPARAM hContact, LPARAM)
{
ptrA jid(ContactToJID(hContact));
- if (jid != nullptr) {
- if (getWord(hContact, "Status", 0) != ID_STATUS_OFFLINE) {
- JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_CHATROOM, jid);
- if (item != nullptr)
+ if (jid != nullptr)
+ if (getWord(hContact, "Status", 0) != ID_STATUS_OFFLINE)
+ if (JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_CHATROOM, jid))
GcQuit(item, 200, nullptr);
- }
- }
+
return 0;
}
|