From 7647be3daf9c543c51f95b1b0870cef675aa2974 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 28 Aug 2024 13:38:17 +0200 Subject: [PATCH] starting IDs from 1 instead of 0 atoi returns 0 in failure, meaning all typos would send PMs to first user --- src/chat/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat/misc.c b/src/chat/misc.c index 0e27e25..a795f30 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -426,7 +426,7 @@ void send_welcome_packet(int connection) unsigned long get_latest_id() { - unsigned long returning = 0; + unsigned long returning = 1; why2_node_t *buffer = connection_list.head; connection_node_t value_buffer;