summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-10-16 11:54:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-10-16 11:55:03 +0300
commitdb29490aea37e3b708f606cd3f722009ba8b6f45 (patch)
treeb6bbd18e5500b61b762c2149249032dc80b15fa2 /protocols/Twitter/src
parent1719de1287be19402e64fed7bb8663fb8320e60a (diff)
Twitter: fix for unicode in chat user names
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r--protocols/Twitter/src/chat.cpp4
-rw-r--r--protocols/Twitter/src/version.h2
2 files changed, 3 insertions, 3 deletions
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 <stdver.h>