summaryrefslogtreecommitdiff
path: root/plugins/MirOTR
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-08 11:17:06 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-08 11:17:06 +0000
commit39b98d62430ee2a762db94822c2da05b2065d021 (patch)
tree9a9e551d19fe9beae45ec1edadd6d8fec023efe9 /plugins/MirOTR
parent607e8d87185d4388f3bc8a9797075eb99e472ee1 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@1812 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR')
-rw-r--r--plugins/MirOTR/MirOTR/dllmain.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/MirOTR/MirOTR/dllmain.cpp b/plugins/MirOTR/MirOTR/dllmain.cpp
index 4b4280638a..59841d4e1d 100644
--- a/plugins/MirOTR/MirOTR/dllmain.cpp
+++ b/plugins/MirOTR/MirOTR/dllmain.cpp
@@ -90,14 +90,6 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
return 0;
}
-int NewContact(WPARAM wParam, LPARAM lParam) {
- // add filter
- HANDLE hContact = (HANDLE)wParam;
- CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
-
- return 0;
-}
-
DLLFUNC int Load(void)
{
DEBUGOUT_T("LOAD MIROTR")
@@ -126,20 +118,6 @@ DLLFUNC int Load(void)
DBWriteContactSettingByte(0, MODULENAME, "FilterOrderFix", 2);
}
- // add us as a filter to all contacts
- HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 );
- char *proto;
- while ( hContact != NULL ) {
- proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
-
- // do not add filter to a chatoom
- if ( !(proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0)) )
- CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
-
- hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 );
- }
- HookEvent(ME_DB_CONTACT_ADDED, NewContact);
-
// create our services
CreateProtoServiceFunction(MODULENAME, PSS_MESSAGE, SVC_OTRSendMessage);
CreateProtoServiceFunction(MODULENAME, PSS_MESSAGE"W", SVC_OTRSendMessageW);