diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-17 14:07:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-17 14:07:44 +0000 |
commit | 122baf7f7465e0b5b890729d65914f527db1ca26 (patch) | |
tree | 117f5fe7914b636a5d99577235e58727c8ddedb3 /protocols/Twitter/contacts.cpp | |
parent | 5b68af4bce0056e373e69bf16fb7d3bdfac96dd8 (diff) |
Unicode ACKTYPE_AWAYMSG broadcast
git-svn-id: http://svn.miranda-ng.org/main/trunk@458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/contacts.cpp')
-rw-r--r-- | protocols/Twitter/contacts.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
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<char*>(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)
|