From 122baf7f7465e0b5b890729d65914f527db1ca26 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 17 Jun 2012 14:07:44 +0000 Subject: Unicode ACKTYPE_AWAYMSG broadcast git-svn-id: http://svn.miranda-ng.org/main/trunk@458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/contacts.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'protocols/Twitter/contacts.cpp') diff --git a/protocols/Twitter/contacts.cpp b/protocols/Twitter/contacts.cpp index 32df94b12f..a2245c021a 100644 --- a/protocols/Twitter/contacts.cpp +++ b/protocols/Twitter/contacts.cpp @@ -23,7 +23,7 @@ void TwitterProto::AddToListWorker(void *p) // TODO: what happens if there is an error? if(p == 0) return; - + char *name = static_cast(p); try @@ -59,7 +59,7 @@ void TwitterProto::UpdateInfoWorker(void *hContact) { twitter_user user; std::string username; - + DBVARIANT dbv; if( !DBGetContactSettingString(hContact,m_szModuleName,TWITTER_KEY_UN,&dbv) ) { @@ -171,17 +171,11 @@ void TwitterProto::GetAwayMsgWorker(void *hContact) return; DBVARIANT dbv; - if( !DBGetContactSettingString(hContact,"CList","StatusMsg",&dbv) ) - { - ProtoBroadcastAck(m_szModuleName,hContact,ACKTYPE_AWAYMSG,ACKRESULT_SUCCESS, - (HANDLE)1,(LPARAM)dbv.pszVal); + if( !DBGetContactSettingTString(hContact,"CList","StatusMsg",&dbv)) { + ProtoBroadcastAck(m_szModuleName,hContact,ACKTYPE_AWAYMSG,ACKRESULT_SUCCESS, (HANDLE)1,(LPARAM)dbv.ptszVal); DBFreeVariant(&dbv); } - else - { - ProtoBroadcastAck(m_szModuleName,hContact,ACKTYPE_AWAYMSG,ACKRESULT_FAILED, - (HANDLE)1,(LPARAM)0); - } + else ProtoBroadcastAck(m_szModuleName,hContact,ACKTYPE_AWAYMSG,ACKRESULT_FAILED, (HANDLE)1,(LPARAM)0); } HANDLE TwitterProto::GetAwayMsg(HANDLE hContact) -- cgit v1.2.3