summaryrefslogtreecommitdiff
path: root/bot/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/main.cpp')
-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);