summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-06 15:00:35 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-06 15:00:35 +0300
commitcf9398bf479f55b792fc932f1fdadfe7d1deb3c3 (patch)
tree18d7fd7fee1ef8642d2b09b7b82e05043cd58ac5 /protocols/Discord/src/proto.cpp
parent9c960060136f193ff4f336adcd2c4fac7b604547 (diff)
Discord: ability to disable database histories for a certain guild
Diffstat (limited to 'protocols/Discord/src/proto.cpp')
-rw-r--r--protocols/Discord/src/proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index cea528e5b7..32ad2f6c01 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -150,8 +150,8 @@ void CDiscordProto::OnModulesLoaded()
switch (getByte(hContact, "ChatRoom")) {
case 2: // guild
delSetting(hContact, DB_KEY_CHANNELID);
- if (getDword(hContact, "EnableSync", -1) == -1)
- setDword(hContact, "EnableSync", 1);
+ surelyGetBool(hContact, DB_KEY_ENABLE_HIST);
+ surelyGetBool(hContact, DB_KEY_ENABLE_SYNC);
break;
case 1: // group chat