From 3bb16e798cb51d5764aacbefd4edf26f52d8c4f0 Mon Sep 17 00:00:00 2001 From: George Hazan <ghazan@miranda.im> Date: Wed, 4 Dec 2019 16:08:03 +0300 Subject: GetContactProto: useless duplicate function replaced with standard Proto_GetBaseAccountName --- plugins/Boltun/src/boltun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Boltun/src') diff --git a/plugins/Boltun/src/boltun.cpp b/plugins/Boltun/src/boltun.cpp index deb08f133c..82a9994073 100644 --- a/plugins/Boltun/src/boltun.cpp +++ b/plugins/Boltun/src/boltun.cpp @@ -489,7 +489,7 @@ static INT_PTR ContactClickStartChatting(WPARAM hContact, LPARAM) static int OnContactMenuPrebuild(WPARAM hContact, LPARAM) { - INT_PTR flags = CallProtoService(GetContactProto(hContact), PS_GETCAPS, PFLAGNUM_1); + INT_PTR flags = CallProtoService(Proto_GetBaseAccountName(hContact), PS_GETCAPS, PFLAGNUM_1); bool bEnable = blInit && Contact_OnList(hContact) && (flags & PF1_IM) != 0; Menu_ShowItem(hMenuItemAutoChat, bEnable); -- cgit v1.2.3