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/SecureIM/src/commonheaders.h | 2 +- plugins/SecureIM/src/dbevent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SecureIM/src') diff --git a/plugins/SecureIM/src/commonheaders.h b/plugins/SecureIM/src/commonheaders.h index 794d5dd4db..2f710f4acd 100644 --- a/plugins/SecureIM/src/commonheaders.h +++ b/plugins/SecureIM/src/commonheaders.h @@ -94,7 +94,7 @@ extern mir_cs localQueueMutex; __forceinline int SendBroadcast(MCONTACT hContact, int type, int result, HANDLE hProcess, LPARAM lParam) { - return ProtoBroadcastAck( GetContactProto(hContact), hContact, type, result, hProcess, lParam); + return ProtoBroadcastAck( Proto_GetBaseAccountName(hContact), hContact, type, result, hProcess, lParam); } extern HNETLIBUSER hNetlibUser; diff --git a/plugins/SecureIM/src/dbevent.cpp b/plugins/SecureIM/src/dbevent.cpp index a072dd108c..a809314640 100644 --- a/plugins/SecureIM/src/dbevent.cpp +++ b/plugins/SecureIM/src/dbevent.cpp @@ -3,7 +3,7 @@ void HistoryLog(MCONTACT hContact, LPCSTR szText) { DBEVENTINFO dbei = {}; - dbei.szModule = GetContactProto(hContact); + dbei.szModule = Proto_GetBaseAccountName(hContact); dbei.flags = DBEF_SENT | DBEF_READ; dbei.timestamp = time(0); dbei.eventType = EVENTTYPE_MESSAGE; -- cgit v1.2.3