aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorturret <turret@duck.com>2024-01-18 09:24:01 -0600
committerturret <turret@duck.com>2024-01-18 09:24:01 -0600
commit74b6fc2db2699088606d052a2f0bd99c38a57650 (patch)
tree45debab1ef98a817deed4975beec97d584a2cc3e
parent9a30ecfb12ca3a2775f64fead593de0040ac020b (diff)
downloaddiscord-bot-skeleton-74b6fc2db2699088606d052a2f0bd99c38a57650.tar.gz
discord-bot-skeleton-74b6fc2db2699088606d052a2f0bd99c38a57650.tar.bz2
discord-bot-skeleton-74b6fc2db2699088606d052a2f0bd99c38a57650.zip
ws: fix typo
-rw-r--r--net/ws.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ws.c b/net/ws.c
index 8f3a588..3a8d512 100644
--- a/net/ws.c
+++ b/net/ws.c
@@ -36,7 +36,7 @@ void ws_send_heartbeat()
void ws_handle_event(cJSON *event)
{
int op = cJSON_GetObjectItem(event, "op")->valueint;
- cJSON *data = cJSON_GetObjectItem(event, "d")
+ cJSON *data = cJSON_GetObjectItem(event, "d");
switch(op) {
case 1: /* Heartbeat request */
ws_send_heartbeat();