diff options
Diffstat (limited to 'protocols/Twitter/src/chat.cpp')
-rw-r--r-- | protocols/Twitter/src/chat.cpp | 4 |
1 files changed, 2 insertions, 2 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();
|