summaryrefslogtreecommitdiff
path: root/plugins/Clist_blind
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2020-04-08 17:20:38 +0300
committerdartraiden <wowemuh@gmail.com>2020-04-08 17:20:38 +0300
commitef52fd44af405f847236089fb587f91028c5edc8 (patch)
tree51ff25d820c18f93562af03e115ccd2dbd9b7ec2 /plugins/Clist_blind
parent23a3215d574ca6c1d421f9865b52b97ea9dad923 (diff)
code cleaning
Diffstat (limited to 'plugins/Clist_blind')
-rw-r--r--plugins/Clist_blind/src/init.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/plugins/Clist_blind/src/init.cpp b/plugins/Clist_blind/src/init.cpp
index 55808a265e..f5ceb6f379 100644
--- a/plugins/Clist_blind/src/init.cpp
+++ b/plugins/Clist_blind/src/init.cpp
@@ -441,9 +441,7 @@ wchar_t* GetStatusMessage(struct ClcContact *item)
wchar_t proto_name[128];
wchar_t* GetProtoName(struct ClcContact *item)
{
- #ifdef UNICODE
char description[128];
- #endif
proto_name[0] = '\0';
if (item->hContact == NULL || item->pce->szProto == nullptr) {
@@ -453,12 +451,8 @@ wchar_t* GetProtoName(struct ClcContact *item)
PROTOACCOUNT *acc = Proto_GetAccount(item->pce->szProto);
if (acc == nullptr) {
- #ifdef UNICODE
CallProtoService(item->pce->szProto, PS_GETNAME, sizeof(description), (LPARAM)description);
mir_snwprintf(proto_name, L"%S", description);
- #else
- CallProtoService(item->proto, PS_GETNAME, sizeof(proto_name), (LPARAM)proto_name);
- #endif
return proto_name;
}