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 /plugins/Clist_modern | |
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 'plugins/Clist_modern')
-rw-r--r-- | plugins/Clist_modern/modern_clc.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/plugins/Clist_modern/modern_clc.cpp b/plugins/Clist_modern/modern_clc.cpp index bc7a5a4f66..aeb301a8d5 100644 --- a/plugins/Clist_modern/modern_clc.cpp +++ b/plugins/Clist_modern/modern_clc.cpp @@ -2055,28 +2055,8 @@ int ClcDoProtoAck(HANDLE wParam,ACKDATA * ack) if(ModernGetSettingByte(ack->hContact, ack->szModule, "ChatRoom", 0) != 0) return 0;
}
- {
- DBVARIANT dbv={0};
- BOOL bUnicode = (!ModernGetSetting(ack->hContact, "CList", "StatusMsg", &dbv) && (dbv.type !=DBVT_ASCIIZ) );
- ModernDBFreeVariant(&dbv);
- if (!bUnicode)
- {
- char * val= ModernGetStringA(ack->hContact,"CList","StatusMsg");
- if (val)
- {
- if (!mir_bool_strcmpi(val,(const char *)ack->lParam))
- ModernWriteSettingString(ack->hContact,"CList","StatusMsg",(const char *)ack->lParam);
- else
- gtaRenewText(ack->hContact);
- mir_free_and_nill(val);
- }
- else
- ModernWriteSettingString(ack->hContact,"CList","StatusMsg",(const char *)ack->lParam);
-
- //pcli->pfnClcBroadcast( INTM_STATUSMSGCHANGED,(WPARAM)ack->hContact,(LPARAM)ack->lParam);
- }
- gtaRenewText(ack->hContact);
- }
+ ModernWriteSettingTString(ack->hContact,"CList","StatusMsg",(const TCHAR *)ack->lParam);
+ gtaRenewText(ack->hContact);
}
else
{
|