From 5c6c352a317c30f7ed1b54d7624f49ae7e10344a Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 29 Oct 2010 22:54:29 +0300 Subject: modified: messages.cpp modified: new_gpg.rc --- messages.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'messages.cpp') 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::iterator end = hcontact_data[hContact].msgs_to_ignore.end(); -- cgit v1.2.3