summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-08-03 16:19:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-08-03 16:19:36 +0000
commit42619a142919bc0d71a8918a3605b1a49b97eb5b (patch)
tree1c134aa4e7f32163850f2c6760f29d7936df2cbe /plugins
parentaf27a9fe06fc362cc9b824b75ca0d8ec58f95d6d (diff)
various cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@5567 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Clist_modern/src/modern_clistmod.cpp10
1 files changed, 3 insertions, 7 deletions
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) {