summaryrefslogtreecommitdiff
path: root/protocols/JabberG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-25 19:24:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-25 19:24:02 +0000
commit418cfb6cb57c9e02ffb9f5aafc747a9dc5b76883 (patch)
tree791c5ece99d32eaafe9d05dabe44adf80505ab0c /protocols/JabberG
parented8411a5c4f9d13516664e04b2171969114b55b5 (diff)
no need to close chat room windows in Jabber after logoff
git-svn-id: http://svn.miranda-ng.org/main/trunk@7887 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp7
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp10
2 files changed, 0 insertions, 17 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index 836b016cdd..3c1581a46f 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -1196,13 +1196,6 @@ int __cdecl CJabberProto::SetStatus(int iNewStatus)
if (iNewStatus == ID_STATUS_OFFLINE) {
if (m_ThreadInfo) {
- if (m_bJabberOnline) {
- // Quit all chatrooms (will send quit message)
- LISTFOREACH(i, this, LIST_CHATROOM)
- if (JABBER_LIST_ITEM *item = ListGetItemPtrFromIndex(i))
- GcQuit(item, 0, NULL);
- }
-
m_ThreadInfo->send("</stream:stream>");
m_ThreadInfo->shutdown();
RebuildInfoFrame();
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index a4bb4f7cc4..d3b33c5afa 100644
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -121,14 +121,6 @@ static VOID CALLBACK JabberPasswordCreateDialogApcProc(void* param)
CreateDialogParam(hInst, MAKEINTRESOURCE(IDD_PASSWORD), NULL, JabberPasswordDlgProc, (LPARAM)param);
}
-static VOID CALLBACK JabberOfflineChatWindows(void* param)
-{
- CJabberProto *ppro = (CJabberProto*)param;
- GCDEST gcd = { ppro->m_szModuleName, NULL, GC_EVENT_CONTROL };
- GCEVENT gce = { sizeof(gce), &gcd };
- CallService(MS_GC_EVENT, SESSION_TERMINATE, (LPARAM)&gce);
-}
-
/////////////////////////////////////////////////////////////////////////////////////////
// Jabber keep-alive thread
@@ -549,8 +541,6 @@ recvRest:
SendMessage(m_hwndJabberChangePassword, WM_COMMAND, MAKEWORD(IDCANCEL, 0), 0);
}
- CallFunctionAsync(JabberOfflineChatWindows, this);
-
ListRemoveList(LIST_CHATROOM);
ListRemoveList(LIST_BOOKMARK);
//UI_SAFE_NOTIFY(m_pDlgJabberJoinGroupchat, WM_JABBER_CHECK_ONLINE);