From 28166af249059f05e9cd74ba4b574f569000bcb5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Apr 2020 19:10:07 +0300 Subject: code cleaning --- plugins/SeenPlugin/src/utils.cpp | 40 ++++------------------------------------ 1 file changed, 4 insertions(+), 36 deletions(-) (limited to 'plugins/SeenPlugin/src') diff --git a/plugins/SeenPlugin/src/utils.cpp b/plugins/SeenPlugin/src/utils.cpp index 605e82fe8d..58fe4303eb 100644 --- a/plugins/SeenPlugin/src/utils.cpp +++ b/plugins/SeenPlugin/src/utils.cpp @@ -67,44 +67,12 @@ int IsWatchedProtocol(const char* szProto) return arWatchedProtos.find((char*)szProto) != nullptr; } -BOOL isYahoo(char *protoname) +bool isJabber(const char *protoname) { - if (protoname) { - const char *pszUniqueSetting = Proto_GetUniqueId(protoname); - if (pszUniqueSetting) - return !mir_strcmp(pszUniqueSetting, "yahoo_id"); - } - return FALSE; -} - -BOOL isJabber(char *protoname) -{ - if (protoname) { - const char *pszUniqueSetting = Proto_GetUniqueId(protoname); - if (pszUniqueSetting) - return !mir_strcmp(pszUniqueSetting, "jid"); - } - return FALSE; -} + if (protoname) + return !mir_strcmp(Proto_GetUniqueId(protoname), "jid"); -BOOL isICQ(char *protoname) -{ - if (protoname) { - const char *pszUniqueSetting = Proto_GetUniqueId(protoname); - if (pszUniqueSetting) - return !mir_strcmp(pszUniqueSetting, "UIN"); - } - return FALSE; -} - -BOOL isMSN(char *protoname) -{ - if (protoname) { - const char *pszUniqueSetting = Proto_GetUniqueId(protoname); - if (pszUniqueSetting) - return !mir_strcmp(pszUniqueSetting, "e-mail"); - } - return FALSE; + return false; } DWORD isSeen(MCONTACT hcontact, SYSTEMTIME *st) -- cgit v1.2.3