summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_clc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/modern_clc.cpp')
-rw-r--r--plugins/Clist_modern/modern_clc.cpp24
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
{