diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-10 21:46:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-10 21:47:09 +0300 |
commit | b9a3a98d6f2695a36ca27fa2d88e99fedd72cc98 (patch) | |
tree | beea931b224074701afadd5072db524d1b179219 /protocols/JabberG/src/jabber_chat.cpp | |
parent | bdbb894df1353ba2f5e8eb61a59acf901fd652e5 (diff) |
Group chats:
- GC_CONTROL_MSG left us forever;
- tons of old/unused/useless slack simply wiped out;
- new function: CSrmmBaseDialog::ClearLog
Diffstat (limited to 'protocols/JabberG/src/jabber_chat.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 6cb09aabc2..c431395078 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -327,7 +327,10 @@ void CJabberProto::GcQuit(JABBER_LIST_ITEM *item, int code, HXML reason) GcLogUpdateMemberStatus(item, myNick, myNick, NULL, GC_EVENT_KICK, reason);
}
- Chat_Control(m_szModuleName, item->jid, (code == 200) ? SESSION_TERMINATE : SESSION_OFFLINE);
+ if (code == 200)
+ Chat_Terminate(m_szModuleName, item->jid);
+ else
+ Chat_Control(m_szModuleName, item->jid, SESSION_OFFLINE);
db_unset(item->hContact, "CList", "Hidden");
item->bChatActive = false;
|