From 5417b1e4a79c86ac64cb3f84cde17eec2e0d0c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 5 Mar 2017 15:04:16 +0100 Subject: Facebook: Fix joining chats that doesn't have Nick in database This was weird and useless condition. I don't know why it was here. --- protocols/FacebookRM/src/chat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp index c645140442..d271b544f9 100644 --- a/protocols/FacebookRM/src/chat.cpp +++ b/protocols/FacebookRM/src/chat.cpp @@ -3,7 +3,7 @@ Facebook plugin for Miranda Instant Messenger _____________________________________________ -Copyright © 2011-17 Robert Pösel +Copyright � 2011-17 Robert P�sel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -265,10 +265,9 @@ INT_PTR FacebookProto::OnJoinChat(WPARAM hContact, LPARAM) return 0; ptrW idT(getWStringA(hContact, "ChatRoomID")); - ptrW nameT(getWStringA(hContact, "Nick")); ptrA threadId(getStringA(hContact, FACEBOOK_KEY_TID)); - if (!idT || !nameT || !threadId) + if (!idT || !threadId) return 0; facebook_chatroom *fbc; -- cgit v1.2.3