summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-08 19:10:07 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-08 19:10:07 +0300
commit28166af249059f05e9cd74ba4b574f569000bcb5 (patch)
tree9cb9a34ae3001ee29bcec026491494a4f3a60206 /plugins/SeenPlugin/src
parentd70487f05a8306aae3adf6325724c710f89b2883 (diff)
code cleaning
Diffstat (limited to 'plugins/SeenPlugin/src')
-rw-r--r--plugins/SeenPlugin/src/utils.cpp40
1 files changed, 4 insertions, 36 deletions
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)