summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StopSpamMod')
-rwxr-xr-xplugins/StopSpamMod/src/headers.h6
-rwxr-xr-xplugins/StopSpamMod/src/utilities.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/StopSpamMod/src/headers.h b/plugins/StopSpamMod/src/headers.h
index 6366907403..29b48d043d 100755
--- a/plugins/StopSpamMod/src/headers.h
+++ b/plugins/StopSpamMod/src/headers.h
@@ -1,8 +1,8 @@
#define _CRT_SECURE_NO_WARNINGS
#include <windows.h>
-
-using namespace std;
+
+using namespace std;
#include <fstream>
#include <string>
@@ -12,7 +12,7 @@ using namespace std;
#include <m_protosvc.h>
#include <m_options.h>
#include <m_langpack.h>
-#include <m_clistint.h>
+#include <m_clist.h>
#include <m_skin.h>
#include <m_contacts.h>
#include <m_system_cpp.h>
diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp
index 5ec631990f..804854bce6 100755
--- a/plugins/StopSpamMod/src/utilities.cpp
+++ b/plugins/StopSpamMod/src/utilities.cpp
@@ -264,7 +264,7 @@ void LogSpamToFile(MCONTACT hContact, tstring message)
// Name, UID and Protocol Log line
LogProtocol=DBGetContactSettingStringPAN(hContact,"Protocol","p",_T(""));
- LogContactName=(TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR);
+ LogContactName=(TCHAR*)pcli->pfnGetContactDisplayName(hContact, 0);
LogContactId=(LogProtocol==_T(""))?_T(""):GetContactUid(hContact,LogProtocol);
// Name, UID and Protocol Log line
@@ -380,7 +380,7 @@ void HistoryLogFunc(MCONTACT hContact, std::string message)
std::string msg = message;
msg.append("\n");
msg.append("Protocol: ").append(GetContactProto(hContact)).append(" Contact: ");
- msg.append(toUTF8((TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, hContact, GCDNF_TCHAR))).append(" ID: ");
+ msg.append(toUTF8((TCHAR*)pcli->pfnGetContactDisplayName(hContact, 0))).append(" ID: ");
msg.append(toUTF8(GetContactUid(hContact,toUTF16(GetContactProto(hContact)))));
HistoryLog(NULL, (char*)msg.c_str(), EVENTTYPE_MESSAGE, DBEF_READ);
}