summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-04 16:04:42 +0500
committerilotterytea <iltsu@alright.party>2025-12-04 16:04:42 +0500
commit862e8aa90da9260e9fc0c006eb1ba7fe548e2512 (patch)
treea23bd12e866783fe76d847e3fd59c0acded4d6cf
parent0a25075393297a7ec86c2cc4040135c9ac85afce (diff)
fix: logic error
-rw-r--r--bot/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/main.cpp b/bot/src/main.cpp
index 967e36e..d03f27d 100644
--- a/bot/src/main.cpp
+++ b/bot/src/main.cpp
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
if (name != helix_channel.login) {
conn->exec("UPDATE channels SET alias_name = $1 WHERE id = $2",
- {helix_channel.login, channels[0][0]});
+ {helix_channel.login, channels[0]["id"]});
}
client.join(helix_channel.login);