diff options
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; |