summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SeenPlugin')
-rw-r--r--plugins/SeenPlugin/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp
index 5537de86dc..22af9a35b4 100644
--- a/plugins/SeenPlugin/src/utils.cpp
+++ b/plugins/SeenPlugin/src/utils.cpp
@@ -70,7 +70,7 @@ int IsWatchedProtocol(const char* szProto)
BOOL isYahoo(char *protoname)
{
if (protoname) {
- char *pszUniqueSetting = (char*)CallProtoService(protoname, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
+ const char *pszUniqueSetting = Proto_GetUniqueId(protoname);
if (pszUniqueSetting)
return !mir_strcmp(pszUniqueSetting, "yahoo_id");
}
@@ -80,7 +80,7 @@ BOOL isYahoo(char *protoname)
BOOL isJabber(char *protoname)
{
if (protoname) {
- char *pszUniqueSetting = (char*)CallProtoService(protoname, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
+ const char *pszUniqueSetting = Proto_GetUniqueId(protoname);
if (pszUniqueSetting)
return !mir_strcmp(pszUniqueSetting, "jid");
}
@@ -90,7 +90,7 @@ BOOL isJabber(char *protoname)
BOOL isICQ(char *protoname)
{
if (protoname) {
- char *pszUniqueSetting = (char*)CallProtoService(protoname, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
+ const char *pszUniqueSetting = Proto_GetUniqueId(protoname);
if (pszUniqueSetting)
return !mir_strcmp(pszUniqueSetting, "UIN");
}
@@ -100,7 +100,7 @@ BOOL isICQ(char *protoname)
BOOL isMSN(char *protoname)
{
if (protoname) {
- char *pszUniqueSetting = (char*)CallProtoService(protoname, PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0);
+ const char *pszUniqueSetting = Proto_GetUniqueId(protoname);
if (pszUniqueSetting)
return !mir_strcmp(pszUniqueSetting, "e-mail");
}