starting IDs from 1 instead of 0
atoi returns 0 in failure, meaning all typos would send PMs to first user
This commit is contained in:
parent
963e75da51
commit
7647be3daf
@ -426,7 +426,7 @@ void send_welcome_packet(int connection)
|
|||||||
|
|
||||||
unsigned long get_latest_id()
|
unsigned long get_latest_id()
|
||||||
{
|
{
|
||||||
unsigned long returning = 0;
|
unsigned long returning = 1;
|
||||||
why2_node_t *buffer = connection_list.head;
|
why2_node_t *buffer = connection_list.head;
|
||||||
connection_node_t value_buffer;
|
connection_node_t value_buffer;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user