From 65599a6b52e163df8c47e112bacc4969261cf282 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Jan 2014 19:46:01 +0000 Subject: .. and also prevent a mess in a nicklist git-svn-id: http://svn.miranda-ng.org/main/trunk@7888 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_thread.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index d3b33c5afa..4449c0d2bf 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -541,6 +541,11 @@ recvRest: SendMessage(m_hwndJabberChangePassword, WM_COMMAND, MAKEWORD(IDCANCEL, 0), 0); } + // Quit all chatrooms (will send quit message) + LISTFOREACH(i, this, LIST_CHATROOM) + if (JABBER_LIST_ITEM *item = ListGetItemPtrFromIndex(i)) + GcQuit(item, 0, NULL); + ListRemoveList(LIST_CHATROOM); ListRemoveList(LIST_BOOKMARK); //UI_SAFE_NOTIFY(m_pDlgJabberJoinGroupchat, WM_JABBER_CHECK_ONLINE); -- cgit v1.2.3