summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/messages.cpp b/messages.cpp
index 12dede3..86ad601 100644
--- a/messages.cpp
+++ b/messages.cpp
@@ -729,7 +729,7 @@ int SendMsgSvc(WPARAM w, LPARAM l)
}
HistoryLog(hContact, (char*)str_event.c_str(), EVENTTYPE_MESSAGE, DBEF_SENT | DBEF_UTF);
HistoryLog(metaGetContact(hContact), (char*)str_event.c_str(), EVENTTYPE_MESSAGE, DBEF_SENT | DBEF_UTF);
- hcontact_data[metaGetContact(hContact)].msgs_to_ignore.push_back((char*)ccs->lParam);
+ hcontact_data[hContact].msgs_to_ignore.push_back((char*)ccs->lParam);
hcontact_data[metaGetContact(hContact)].msgs_to_ignore.push_back((char*)ccs->lParam); //hmm, twice ? metacontacts !! %)
CallContactService(hContact, PSS_MESSAGE, (WPARAM)PREF_UTF, (LPARAM)toUTF8(str).c_str());
return returnNoError(hContact);
@@ -756,8 +756,6 @@ int HookSendMsg(WPARAM w, LPARAM l)
hContact = (HANDLE)w;
else if(!hcontact_data[metaGetContact((HANDLE)w)].msgs_to_ignore.empty())
hContact = metaGetContact((HANDLE)w);
- else if(!hcontact_data[metaGetCurrent((HANDLE)w)].msgs_to_ignore.empty())
- hContact = metaGetCurrent((HANDLE)w);
if(hContact)
{
list<string>::iterator end = hcontact_data[hContact].msgs_to_ignore.end();