diff options
author | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-12-04 16:08:03 +0300 |
commit | 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 (patch) | |
tree | 59dbb53fc9496d660ec2ef2846a4eab0f1720b88 /plugins/AuthState | |
parent | 3216d8df5cb355f34c82ed10b7e40bab7525b697 (diff) |
GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName
Diffstat (limited to 'plugins/AuthState')
-rw-r--r-- | plugins/AuthState/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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;
|