summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index df6bee9..d2d1984 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1529,14 +1529,14 @@ void InitCheck()
ShowFirstRunDialog();
}
extern bool bAutoExchange;
- if(bAutoExchange && (ServiceExists(PS_ICQ_ADDCAPABILITY)))
+ if(bAutoExchange && (ServiceExists("ICQ"PS_ICQ_ADDCAPABILITY))) //work only for one icq instance
{
ICQ_CUSTOMCAP cap;
cap.cbSize = sizeof(ICQ_CUSTOMCAP);
cap.hIcon = 0;
strcpy(cap.name, "GPG Key AutoExchange");
strcpy(cap.caps, "GPG AutoExchange");
- CallService(PS_ICQ_ADDCAPABILITY, 0, (LPARAM)&cap);
+ CallService("ICQ"PS_ICQ_ADDCAPABILITY, 0, (LPARAM)&cap);
}
}