From ab53e157ddc1eddbfa072d43d62d244443f41815 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Apr 2016 10:41:34 +0000 Subject: we invite users to the active rooms only git-svn-id: http://svn.miranda-ng.org/main/trunk@16764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_chat.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp index 3617dd6c5b..58a2038dab 100644 --- a/protocols/JabberG/src/jabber_chat.cpp +++ b/protocols/JabberG/src/jabber_chat.cpp @@ -578,10 +578,14 @@ int CJabberProto::JabberGcMenuHook(WPARAM, LPARAM lParam) idx = IDM_LINK0; LISTFOREACH_NODEF(i, this, LIST_CHATROOM) if (item = ListGetItemPtrFromIndex(i)) { + if (!item->bChatActive) + continue; + gc_item *pItem = sttFindGcMenuItem(gcmi, idx); pItem->pszDesc = item->jid; pItem->uType = MENU_POPUPITEM; - if (++idx > IDM_LINK9) break; + if (++idx > IDM_LINK9) + break; } for (; idx <= IDM_LINK9; ++idx) -- cgit v1.2.3