From 0ead8bc26f63385a8ee1cba53fb857d32dcd3567 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Wed, 9 Apr 2008 06:58:57 +0000 Subject: secure IM patch by baloo git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@404 4f64403b-2f21-0410-a795-97e2b3489a10 --- metacontacts/meta_services.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'metacontacts/meta_services.c') diff --git a/metacontacts/meta_services.c b/metacontacts/meta_services.c index 3ff39e2..cf42ef2 100644 --- a/metacontacts/meta_services.c +++ b/metacontacts/meta_services.c @@ -384,7 +384,7 @@ int Meta_SendMessage(WPARAM wParam,LPARAM lParam) strncpy(szServiceName, PSS_MESSAGE "W", sizeof(szServiceName)); } - if(options.subhistory) { + if(options.subhistory && !(ccs->wParam & PREF_METANODB)) { // add sent event to subcontact ZeroMemory(&dbei, sizeof(dbei)); dbei.cbSize = sizeof(dbei); @@ -544,7 +544,7 @@ int MetaFilter_RecvMessage(WPARAM wParam,LPARAM lParam) ccs->hContact = hSub; } - if(options.subhistory) { + if(options.subhistory && !(ccs->wParam & PREF_METANODB)) { // allow event pass through and thereby be added to subcontact history pre->flags |= (DBGetContactSettingByte(ccs->hContact, META_PROTO, "WindowOpen", 0) ? 0 : PREF_CREATEREAD); CallService(MS_PROTO_CHAINRECV, wParam, (LPARAM)ccs); // pass through as normal -- cgit v1.2.3