From db29490aea37e3b708f606cd3f722009ba8b6f45 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Oct 2021 11:54:52 +0300 Subject: Twitter: fix for unicode in chat user names --- protocols/Twitter/src/chat.cpp | 4 ++-- protocols/Twitter/src/version.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Twitter') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 7fe8b4f667..f1e758a620 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -34,8 +34,8 @@ void CTwitterProto::UpdateChat(const twitter_user &update) gce.time = (DWORD)update.status.time; MCONTACT hContact = UsernameToHContact(update.username.c_str()); - CMStringA szNick = db_get_sm(hContact, "CList", "MyHandle"); - if (hContact && !szNick.IsEmpty()) + ptrA szNick(db_get_utfa(hContact, "CList", "MyHandle")); + if (hContact && szNick) gce.pszNick.a = szNick; else gce.pszNick.a = update.username.c_str(); diff --git a/protocols/Twitter/src/version.h b/protocols/Twitter/src/version.h index 8769c03def..80dfdb562a 100644 --- a/protocols/Twitter/src/version.h +++ b/protocols/Twitter/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 1 #define __MINOR_VERSION 3 #define __RELEASE_NUM 1 -#define __BUILD_NUM 3 +#define __BUILD_NUM 4 #include -- cgit v1.2.3