diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-03-04 12:05:53 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-03-04 12:05:53 +0000 |
commit | b8f9685565a64b1d04d545bfa1ffead2a84547cc (patch) | |
tree | b170497a4e606728e892118bc7c9d2033db5f9e4 /protocols/FacebookRM/src/contacts.cpp | |
parent | 1d7cce364ec2c9793463072063c4f7bb087f5071 (diff) |
Facebook: Use participant names in chatroom name / seen info in "Firstname S." format
git-svn-id: http://svn.miranda-ng.org/main/trunk@12312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/contacts.cpp')
-rw-r--r-- | protocols/FacebookRM/src/contacts.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/contacts.cpp b/protocols/FacebookRM/src/contacts.cpp index 23a6768638..df86cac727 100644 --- a/protocols/FacebookRM/src/contacts.cpp +++ b/protocols/FacebookRM/src/contacts.cpp @@ -304,10 +304,8 @@ void FacebookProto::LoadChatInfo(facebook_chatroom *fbc) if (namesUsed > 0) fbc->chat_name += _T(", "); - std::string::size_type pos = participant.find(" "); - std::string name = (pos != std::string::npos ? participant.substr(0, pos) : participant); - - fbc->chat_name += _A2T(name.c_str(), CP_UTF8); + std::tstring tname = _A2T(participant.c_str(), CP_UTF8); + fbc->chat_name += utils::text::prepare_name(tname, true); if (++namesUsed >= FACEBOOK_CHATROOM_NAMES_COUNT) break; |