diff options
-rw-r--r-- | src/mir_app/src/proto_accs.cpp | 5 |
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;
|