summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-17 13:21:09 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-17 13:21:09 +0300
commit5617101d084099ff1dcc30ff63ff13772e097f11 (patch)
tree970df6642888bb21c026342a487f62c34740f9c9 /protocols/JabberG/src
parent5fdd629c6420a1ce0751291e348b3eee9c6db15e (diff)
fixes #4547 (Jabber: Миранда не реагирует на приглашение)
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r--protocols/JabberG/src/jabber_groupchat.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_groupchat.cpp b/protocols/JabberG/src/jabber_groupchat.cpp
index 4c56450207..d3261f4e6d 100644
--- a/protocols/JabberG/src/jabber_groupchat.cpp
+++ b/protocols/JabberG/src/jabber_groupchat.cpp
@@ -1134,8 +1134,9 @@ void CJabberProto::GroupchatProcessInvite(const char *roomJid, const char *from,
if (roomJid == nullptr)
return;
- if (ListGetItemPtr(LIST_CHATROOM, roomJid))
- return;
+ if (auto *item = ListGetItemPtr(LIST_CHATROOM, roomJid))
+ if (Contact::GetStatus(item->hContact) != ID_STATUS_OFFLINE)
+ return;
if (m_bAutoAcceptMUC)
AcceptGroupchatInvite(roomJid, MyNick(), password);