diff options
author | George Hazan <george.hazan@gmail.com> | 2012-10-07 11:54:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-10-07 11:54:26 +0000 |
commit | 95da57c8e9cf894adf3afae124a29d292b085c5e (patch) | |
tree | 6ff78e2a202f592744c8f08abc28178d2e655a50 /src | |
parent | 08d82c6a8b0e597430aae75033fac58388139535 (diff) |
check if the _Filters module wasn't deleted
git-svn-id: http://svn.miranda-ng.org/main/trunk@1798 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/protocols/protochains.cpp | 5 | ||||
-rw-r--r-- | src/modules/protocols/protocols.cpp | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/protocols/protochains.cpp b/src/modules/protocols/protochains.cpp index 0314282e08..4fe8820e18 100644 --- a/src/modules/protocols/protochains.cpp +++ b/src/modules/protocols/protochains.cpp @@ -224,6 +224,11 @@ static INT_PTR Proto_RemoveFromContact(WPARAM wParam, LPARAM lParam) int LoadProtoChains(void)
{
+ if ( !db_get_b(NULL, "Compatibility", "Filters", 0)) {
+ CallService(MS_DB_MODULE_DELETE, 0, (LPARAM)"_Filters");
+ db_set_b(NULL, "Compatibility", "Filters", 1);
+ }
+
CreateServiceFunction(MS_PROTO_CALLCONTACTSERVICE, Proto_CallContactService);
CreateServiceFunction(MS_PROTO_CHAINSEND, Proto_CallContactService);
CreateServiceFunction(MS_PROTO_CHAINRECV, Proto_ChainRecv);
diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 19a82b1add..f2bada7aa0 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -662,7 +662,6 @@ int LoadProtocolsModule(void) InsertServiceListItem(35, PS_GETNAME);
InsertServiceListItem(36, PS_GETSTATUS);
-
InsertServiceListItem(100, PS_SETAWAYMSGW);
InsertServiceListItem(102, PSS_FILEW);
InsertServiceListItem(103, PSS_FILEALLOWW);
|