summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-25 19:46:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-25 19:46:01 +0000
commit65599a6b52e163df8c47e112bacc4969261cf282 (patch)
treed630d3c52e34ae8152e9b387107bda61a25d0adc /protocols/JabberG/src/jabber_thread.cpp
parent418cfb6cb57c9e02ffb9f5aafc747a9dc5b76883 (diff)
.. and also prevent a mess in a nicklist
git-svn-id: http://svn.miranda-ng.org/main/trunk@7888 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp5
1 files changed, 5 insertions, 0 deletions
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);