summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/FacebookRM/src/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp
index 78df418b38..a41fed1c54 100644
--- a/protocols/FacebookRM/src/chat.cpp
+++ b/protocols/FacebookRM/src/chat.cpp
@@ -282,7 +282,7 @@ void FacebookProto::AddChat(const char *id, const wchar_t *tname)
INT_PTR FacebookProto::OnJoinChat(WPARAM hContact, LPARAM)
{
- if (!m_enableChat || IsSpecialChatRoom(hContact))
+ if (isOffline() || facy.dtsg_.empty() || !m_enableChat || IsSpecialChatRoom(hContact))
return 0;
ptrW idT(getWStringA(hContact, "ChatRoomID"));