From 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 4 Dec 2019 16:08:03 +0300 Subject: GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName --- plugins/AuthState/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AuthState') diff --git a/plugins/AuthState/src/main.cpp b/plugins/AuthState/src/main.cpp index fe60e1c114..2b471bc150 100644 --- a/plugins/AuthState/src/main.cpp +++ b/plugins/AuthState/src/main.cpp @@ -64,7 +64,7 @@ CMPlugin::CMPlugin() : INT_PTR getIconToUse(MCONTACT hContact, LPARAM) { - const char *proto = GetContactProto(hContact); + const char *proto = Proto_GetBaseAccountName(hContact); // if (lParam == 1) return icon_none; if (!g_plugin.getByte(hContact, "ShowIcons", !Options.bIconsForRecentContacts)) return ICON_NONE; @@ -103,7 +103,7 @@ int onExtraImageApplying(WPARAM hContact, LPARAM lParam) int onContactSettingChanged(WPARAM hContact, LPARAM lParam) { DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam; - const char *proto = GetContactProto((MCONTACT)hContact); + const char *proto = Proto_GetBaseAccountName((MCONTACT)hContact); if (!proto) return 0; @@ -135,7 +135,7 @@ int onPrebuildContactMenu(WPARAM hContact, LPARAM) return 0; } - char *proto = GetContactProto((MCONTACT)hContact); + char *proto = Proto_GetBaseAccountName((MCONTACT)hContact); if (!proto) return 0; -- cgit v1.2.3