diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-03-05 15:04:16 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-03-05 15:05:57 +0100 |
commit | 5417b1e4a79c86ac64cb3f84cde17eec2e0d0c87 (patch) | |
tree | 7bfaa4ffb6136dff0cf3c18e52c00b0aa99942fb | |
parent | 1b1efc7f7ae4c0aa75e06eaf4ed56e7dce985472 (diff) |
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.
-rw-r--r-- | protocols/FacebookRM/src/chat.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; |