summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
commit99d21912f00a44a6bb83e9bb3ae248facb235b69 (patch)
tree01b1bd99c8f226501d6138ae6b06c518c6343941
parent48efd9c57fdbe79fa5f03edf306b052646aec483 (diff)
block otr messages
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@452 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r--metacontacts/MetaContacts_9.vcproj4
-rw-r--r--metacontacts/meta_services.c3
-rw-r--r--metacontacts/version.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/metacontacts/MetaContacts_9.vcproj b/metacontacts/MetaContacts_9.vcproj
index 60e1cbd..87dff4b 100644
--- a/metacontacts/MetaContacts_9.vcproj
+++ b/metacontacts/MetaContacts_9.vcproj
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="windows-1251"?>
+<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
@@ -52,7 +52,7 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
- AdditionalIncludeDirectories="../../../include"
+ AdditionalIncludeDirectories="../../include"
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;METACONTACTS_EXPORTS"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
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);
diff --git a/metacontacts/version.h b/metacontacts/version.h
index e563bc6..e79231d 100644
--- a/metacontacts/version.h
+++ b/metacontacts/version.h
@@ -5,7 +5,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 14
#define __RELEASE_NUM 0
-#define __BUILD_NUM 9
+#define __BUILD_NUM 10
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM