summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-03-23 00:36:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-03-23 00:36:29 +0300
commit93249b0dec5639fa1c438da3e3289b65bf04c1de (patch)
tree387e62e383353b552cc044d7978380bff8d9d0d9 /src
parenta9195c3feeb2bc1ad1a7d1194447449d02e6e2a1 (diff)
MetaContacts are always enabled
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/proto_accs.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/proto_accs.cpp b/src/mir_app/src/proto_accs.cpp
index a6bf3d8e18..db051c9303 100644
--- a/src/mir_app/src/proto_accs.cpp
+++ b/src/mir_app/src/proto_accs.cpp
@@ -98,7 +98,10 @@ void LoadDbAccounts(void)
_itoa(OFFSET_ENABLED + i, buf, 10);
pa->bIsEnabled = db_get_dw(0, "Protocols", buf, 1) != 0;
-
+ if (!pa->bIsEnabled && !mir_strcmp(pa->szModuleName, META_PROTO)) {
+ pa->bIsEnabled = true;
+ db_set_dw(0, "Protocols", buf, 1);
+ }
pa->szProtoName = db_get_sa(0, szModuleName, "AM_BaseProto");
}
else pa->bIsEnabled = true;