From 42619a142919bc0d71a8918a3605b1a49b97eb5b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 3 Aug 2013 16:19:36 +0000 Subject: various cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@5567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clistmod.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp index 291ed4ac4c..03fbb58d02 100644 --- a/plugins/Clist_modern/src/modern_clistmod.cpp +++ b/plugins/Clist_modern/src/modern_clistmod.cpp @@ -60,16 +60,12 @@ HICON cliGetIconFromStatusMode(HANDLE hContact, const char *szProto,int status) { // check if options is turned on BYTE trayOption = db_get_b(NULL,"CLUI","XStatusTray",SETTING_TRAYOPTION_DEFAULT); - if (trayOption&3 && szProto != NULL) { - // check service exists - char str[MAXMODULELABELLENGTH]; - strcpy(str,szProto); - strcat(str,PS_GETCUSTOMSTATUSICON); - if ( ServiceExists(str)) { + if ((trayOption & 3) && szProto != NULL) { + if ( ProtoServiceExists(szProto, PS_GETCUSTOMSTATUSICON)) { // check status is online if (status > ID_STATUS_OFFLINE) { // get xicon - HICON hXIcon = (HICON)CallService(str, 0, 0); + HICON hXIcon = (HICON)ProtoCallService(szProto, PS_GETCUSTOMSTATUSICON, 0, 0); if (hXIcon) { // check overlay mode if (trayOption & 2) { -- cgit v1.2.3