diff options
author | George Hazan <george.hazan@gmail.com> | 2024-07-17 13:21:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-07-17 13:21:09 +0300 |
commit | 5617101d084099ff1dcc30ff63ff13772e097f11 (patch) | |
tree | 970df6642888bb21c026342a487f62c34740f9c9 /protocols/JabberG/src | |
parent | 5fdd629c6420a1ce0751291e348b3eee9c6db15e (diff) |
fixes #4547 (Jabber: Миранда не реагирует на приглашение)
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_groupchat.cpp | 5 |
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);
|