diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-31 12:40:08 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2009-03-31 12:40:08 +0000 |
commit | 99d21912f00a44a6bb83e9bb3ae248facb235b69 (patch) | |
tree | 01b1bd99c8f226501d6138ae6b06c518c6343941 /metacontacts/meta_services.c | |
parent | 48efd9c57fdbe79fa5f03edf306b052646aec483 (diff) |
block otr messages
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@452 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/meta_services.c')
-rw-r--r-- | metacontacts/meta_services.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/metacontacts/meta_services.c b/metacontacts/meta_services.c index c008021..ec64e32 100644 --- a/metacontacts/meta_services.c +++ b/metacontacts/meta_services.c @@ -279,6 +279,9 @@ INT_PTR MetaFilter_SendMessage(WPARAM wParam,LPARAM lParam) if(strlen((char *)ccs->lParam) > 5 && strncmp((char *)ccs->lParam, "<%dAM", 5) == 0)
return CallService(MS_PROTO_CHAINSEND, wParam, lParam); // continue processing
+ // reject "OTR" messages
+ if(strlen((char *)ccs->lParam) > 5 && strncmp((char *)ccs->lParam, "?OTR", 4) == 0)
+ return CallService(MS_PROTO_CHAINSEND, wParam, lParam); // continue processing
ZeroMemory(&dbei, sizeof(dbei));
dbei.cbSize = sizeof(dbei);
|