diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-03 19:49:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-03 19:49:55 +0300 |
commit | a70fd8de566d88a4379dccf3b4080200c975fb44 (patch) | |
tree | e648ccdcdae32015b767fc1677821f2fab038943 | |
parent | 82d5dddc7c633a99ad97a732c91e80904fc6e12f (diff) |
unused entries to be removed
-rw-r--r-- | plugins/StopSpamPlus/src/events.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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);
}
}
}
|