diff options
author | George Hazan <george.hazan@gmail.com> | 2016-04-25 10:41:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-04-25 10:41:34 +0000 |
commit | ab53e157ddc1eddbfa072d43d62d244443f41815 (patch) | |
tree | b306de765b5bcb9585e930d3993f6f1adf022086 /protocols/JabberG | |
parent | 16b8513856718601bfb7474eb0a6838e4399f86b (diff) |
we invite users to the active rooms only
git-svn-id: http://svn.miranda-ng.org/main/trunk@16764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_chat.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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)
|