293 Commits

Author SHA1 Message Date
952658b281
added null terminating char to add_brackets 2024-01-27 22:10:32 +01:00
2121ec6786
checking for anon & server username
blocking them also
2024-01-27 18:40:12 +01:00
6970a65841
fixed client formatting again 2024-01-27 18:21:50 +01:00
135c3bd088
added username to connection_list node 2024-01-27 18:07:48 +01:00
27facd5abd
fixed client formatting after username input 2024-01-27 17:55:20 +01:00
483ffa178d
server asking client for username 2024-01-27 17:47:05 +01:00
7042e3c971
catching WHY2_CHAT_CODE_INVALID_USERNAME and WHY2_CHAT_CODE_PICK_USERNAME as client 2024-01-27 17:46:45 +01:00
de449bd88a
created check_username function
this checks for characters that are not a-Z or 0-9
2024-01-27 17:44:39 +01:00
905c2004db
simplified server listening loop exit 2024-01-27 17:43:59 +01:00
d43882b38f
removed old useless testing code 2024-01-27 16:09:33 +01:00
8f9aaaba36
removed unused code 2024-01-27 15:55:41 +01:00
885aba79ab
fixed formatting on invalid command 2024-01-27 15:36:09 +01:00
7e35adfbb5
moved reading stuff from why2_communicate_thread to read_user function
chances this will break already working code is like 98.3% so yeah... Not 100% tho
2024-01-27 14:57:19 +01:00
7fd51adbfa
format fix 2024-01-25 21:51:11 +01:00
57eba2caf6
implemented auto_connect in client 2024-01-25 21:46:54 +01:00
abe76d79f0
added return value check to client & server getline 2024-01-25 11:23:54 +01:00
7d37daa32d
preventing server from crashing on client crash 2024-01-24 18:29:02 +01:00
db1b1f8b22
removed fixed todo 2024-01-24 13:28:09 +01:00
492563ee40
renamed why2_config_read to why2_toml_read
idk why i didnt do this at first
2024-01-24 12:18:12 +01:00
8f3a45f3ef
implemented why2_config_read in chat-misc 2024-01-24 12:16:15 +01:00
c8bfaedd9d
removed parses files 2024-01-24 12:10:16 +01:00
0736a0d442
created rust module for reading toml config files
Yes. Rust module in a LW C project. Yes. Am I stupid? Yes. Is somebody pointing at my head with a gun and forcing me to do this? Yes. Do I hate myself? Yes. love ya
2024-01-23 21:14:08 +01:00
78244e7e3e
removed tables from config files 2024-01-23 19:52:11 +01:00
74f9764e4b
changed config file types from yml to toml 2024-01-23 19:19:52 +01:00
ddbe899071
added message thread cleanup for server
also swaped the function names cause I am so smart
2024-01-21 13:44:31 +01:00
5fdd267907
fixed why2_clean_threads segfault client 2024-01-20 20:13:58 +01:00
72fcc4c3e5
running garbage collector at the end of client & server run 2024-01-20 16:01:19 +01:00
7ffb9b1d9c
fixed client segfault on ssqc 2024-01-20 15:48:34 +01:00
f71d3954f0
checked getline return value in client main
i hope these comints are sort of intelligent cause im  drunk as hell :dd
2023-11-18 20:22:04 +01:00
7c9e2211a5
implemented yml config in chat-misc 2023-08-27 12:19:46 +02:00
2682ef294e
added missing header include in parser 2023-08-27 11:59:15 +02:00
088ff17b1d
implemented WHY2_CHAT_SERVER_USERNAME macro 2023-08-27 11:56:23 +02:00
96babf734c
defined why2_yml_read
this definitely isn't code from chatgpt combined with my dumb-ass and some random stuff from stackoverflow, nah :))
2023-08-27 11:50:11 +02:00
9fb66c42bf
created parser files 2023-08-27 11:35:37 +02:00
15bc846db8
fixed .config directory path 2023-08-27 11:05:11 +02:00
c0f7461eab
added .config directory existence check 2023-08-26 19:14:11 +02:00
b11f092bda
replaced local macros with flags 2023-08-26 18:57:53 +02:00
902872d25c
implemented why2_chat_init_client_config
meow
2023-08-26 18:43:08 +02:00
bc77ccd04f
defined why2_chat_init_client_config 2023-08-26 18:41:43 +02:00
d2b8f414e7
added way to easily implement client config 2023-08-26 18:40:52 +02:00
093cb2ad48
created client-side config file 2023-08-26 18:21:23 +02:00
bb74c5a52b
added license into server config 2023-08-26 18:18:10 +02:00
89e69df3cd
renamed why2_chat_init_config to why2_chat_init_server_config 2023-08-26 18:15:53 +02:00
9e95b283a4
implemented server-side config 2023-08-26 18:12:26 +02:00
6df35b0f95
preparing for client-side config 2023-08-26 17:59:28 +02:00
c6746b3945
added NOT IMPLEMENTED note to user_pick_username 2023-08-26 17:39:07 +02:00
92e6632fbc
removed completed TODOs 2023-05-02 19:11:08 +02:00
884efa1a92
prepared WHY2_CHAT_CODEs handler 2023-05-02 19:08:43 +02:00
037521b871
sending WHY2_CHAT_CODE_PICK_USERNAME signal to client at connect 2023-05-02 18:55:21 +02:00
ca22dab5aa
added newline char to chat config 2023-05-02 18:42:06 +02:00