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/StopSpamMod/src/utilities.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/StopSpamMod') diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp index d8dd94c673..6e1ee82c2d 100755 --- a/plugins/StopSpamMod/src/utilities.cpp +++ b/plugins/StopSpamMod/src/utilities.cpp @@ -331,9 +331,9 @@ void HistoryLogFunc(MCONTACT hContact, std::string message) std::string msg = message; msg.append("\n"); - msg.append("Protocol: ").append(GetContactProto(hContact)).append(" Contact: "); + msg.append("Protocol: ").append(Proto_GetBaseAccountName(hContact)).append(" Contact: "); msg.append(toUTF8(Clist_GetContactDisplayName(hContact))).append(" ID: "); - msg.append(toUTF8(GetContactUid(hContact, toUTF16(GetContactProto(hContact))))); + msg.append(toUTF8(GetContactUid(hContact, toUTF16(Proto_GetBaseAccountName(hContact))))); HistoryLog(NULL, (char*)msg.c_str(), EVENTTYPE_MESSAGE, DBEF_READ); } } -- cgit v1.2.3