summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/StopSpamMod')
-rwxr-xr-xplugins/StopSpamMod/src/utilities.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/StopSpamMod/src/utilities.cpp b/plugins/StopSpamMod/src/utilities.cpp
index ac092f927d..e4a7793514 100755
--- a/plugins/StopSpamMod/src/utilities.cpp
+++ b/plugins/StopSpamMod/src/utilities.cpp
@@ -374,8 +374,9 @@ void HistoryLogFunc(HCONTACT hContact, std::string message)
{
if(gbHistoryLog)
{
- if(hContact == INVALID_HANDLE_VALUE)
+ if(hContact == (HCONTACT)INVALID_HANDLE_VALUE)
return;
+
std::string msg = message;
msg.append("\n");
msg.append("Protocol: ").append(GetContactProto(hContact)).append(" Contact: ");