diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-24 14:31:50 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-06-24 14:31:50 -0400 |
commit | 989ec06838b2f8e5a90808eacb97aefe2890df6c (patch) | |
tree | 4827aa21c3c794c3b5ec23b2e2f4d989cd4cbebc /discord/store.cpp | |
parent | 6e75c4a95dcf0e601aba324ab5ae5f34ebd1a00d (diff) | |
download | abaddon-portaudio-989ec06838b2f8e5a90808eacb97aefe2890df6c.tar.gz abaddon-portaudio-989ec06838b2f8e5a90808eacb97aefe2890df6c.zip |
change how client determines if verification is needed (#28)
Diffstat (limited to 'discord/store.cpp')
-rw-r--r-- | discord/store.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/discord/store.cpp b/discord/store.cpp index b282100..fc40108 100644 --- a/discord/store.cpp +++ b/discord/store.cpp @@ -211,6 +211,7 @@ void Store::SetGuildMember(Snowflake guild_id, Snowflake user_id, const GuildMem Bind(m_set_member_stmt, 7, data.IsDeafened); Bind(m_set_member_stmt, 8, data.IsMuted); Bind(m_set_member_stmt, 9, data.Avatar); + Bind(m_set_member_stmt, 10, data.IsPending); if (!RunInsert(m_set_member_stmt)) fprintf(stderr, "member insert failed: %s\n", sqlite3_errstr(m_db_err)); @@ -642,6 +643,7 @@ std::optional<GuildMember> Store::GetGuildMember(Snowflake guild_id, Snowflake u Get(m_get_member_stmt, 6, ret.IsDeafened); Get(m_get_member_stmt, 7, ret.IsMuted); Get(m_get_member_stmt, 8, ret.Avatar); + Get(m_get_member_stmt, 9, ret.IsPending); Reset(m_get_member_stmt); @@ -876,6 +878,7 @@ bool Store::CreateTables() { deaf BOOL NOT NULL, mute BOOL NOT NULL, avatar TEXT, + pending BOOL, PRIMARY KEY(user_id, guild_id) ) )"; @@ -1092,7 +1095,7 @@ bool Store::CreateStatements() { const char *set_member = R"( REPLACE INTO members VALUES ( - ?, ?, ?, ?, ?, ?, ?, ?, ? + ?, ?, ?, ?, ?, ?, ?, ?, ?, ? ) )"; |