summaryrefslogtreecommitdiff
path: root/utilities.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-03-16 03:24:16 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2011-03-16 03:24:16 +0200
commit68b8f4ead3b2005856427392bd1a7fd8830ee3a9 (patch)
treea83c98b4298e1fd69ca08b77ec5dd0c521d47803 /utilities.cpp
parent2c8627c6f7c0762c36995028b9d7af346209e2be (diff)
modified: jabber_account.cpp
modified: jabber_account.h modified: utilities.cpp
Diffstat (limited to 'utilities.cpp')
-rw-r--r--utilities.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/utilities.cpp b/utilities.cpp
index cf64422..d59a7cb 100644
--- a/utilities.cpp
+++ b/utilities.cpp
@@ -782,6 +782,13 @@ static JABBER_HANDLER_FUNC PrescenseHandler(IJabberInterface *ji, HXML node, voi
return FALSE;
}
+static JABBER_HANDLER_FUNC MessageHandler(IJabberInterface *ji, HXML node, void *pUserData)
+{
+ return FALSE;
+}
+
+
+
void AddHandlers()
{
@@ -792,13 +799,11 @@ void AddHandlers()
if(!(*p))
break;
if((*p)->getSendHandler() == INVALID_HANDLE_VALUE)
- {
(*p)->setSendHandler((*p)->getJabberInterface()->Net()->AddSendHandler((JABBER_HANDLER_FUNC)SendHandler));
- }
if((*p)->getPrescenseHandler() == INVALID_HANDLE_VALUE)
- {
(*p)->setPrescenseHandler((*p)->getJabberInterface()->Net()->AddPresenceHandler((JABBER_HANDLER_FUNC)PrescenseHandler));
- }
+ if((*p)->getMessageHandler() == INVALID_HANDLE_VALUE)
+ (*p)->setMessageHandler((*p)->getJabberInterface()->Net()->AddMessageHandler((JABBER_HANDLER_FUNC)MessageHandler, JABBER_MESSAGE_TYPE_ERROR,0 ,0));
if(bAutoExchange)
{
(*p)->getJabberInterface()->Net()->RegisterFeature(_T("GPG_Key_Auto_Exchange:0"), _T("Indicates that gpg installed and configured to public key auto exchange (currently implemented in new_gpg Miranda IM plugin)"));