From a70fd8de566d88a4379dccf3b4080200c975fb44 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Jan 2025 19:49:51 +0300 Subject: unused entries to be removed --- plugins/StopSpamPlus/src/events.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/StopSpamPlus/src') diff --git a/plugins/StopSpamPlus/src/events.cpp b/plugins/StopSpamPlus/src/events.cpp index a2bd2d4608..2581e1f913 100644 --- a/plugins/StopSpamPlus/src/events.cpp +++ b/plugins/StopSpamPlus/src/events.cpp @@ -98,6 +98,7 @@ int OnDbEventFilterAdd(WPARAM w, LPARAM l) if (g_plugin.bAnswNotCaseSens ? !mir_wstrcmpi(message.c_str(), answer.c_str()) : !mir_wstrcmp(message.c_str(), answer.c_str())) { // unhide contact Contact::Hide(hContact, false); + g_times.erase(hContact); // add contact permanently and delete our temporary variables if (g_plugin.bAddPermanent) { @@ -161,6 +162,7 @@ void CMPlugin::Impl::OnTimer(CTimer *) Netlib_Logf(0, "StopSpam: removing temporary contact %d", it.first); db_delete_contact(it.first); + g_times.erase(it.first); } } } -- cgit v1.2.3