1376 Commits

Author SHA1 Message Date
3fa15f5ebb
changed ascii range 2024-08-31 16:25:36 +02:00
37a615cb03
got rid of the dumbass goto in read_socket_raw
and possibly created 10 new problems :))
2024-08-31 16:22:34 +02:00
981dec55db
moved is_ascii to separate fn 2024-08-31 16:11:58 +02:00
f7982d4d4a
moved removing non-ascii chars to fn 2024-08-31 16:01:04 +02:00
a9fd0596e5
creating user config on server startup
if user_pick_username is set to true
2024-08-31 14:44:08 +02:00
ada457c824
created macro for server-user config file 2024-08-31 13:20:44 +02:00
48208d0991
fixed double memory leak in init_config fn 2024-08-31 13:02:32 +02:00
b385187d39
added the why2_toml_contains fn to config header 2024-08-31 12:46:12 +02:00
446727b87c
created rust fn for checking if toml contains key 2024-08-31 12:44:15 +02:00
7be5d6ff32
added the why2_toml_write fn to config header 2024-08-31 12:36:52 +02:00
690d979124
created rust fn for writing into toml 2024-08-31 12:36:36 +02:00
f539a4bd71
displaying welcome message on client 2024-08-30 15:06:04 +02:00
329c3c9cd2
added missing why2_directory call to why2_check_version 2024-08-30 15:01:27 +02:00
c28765a4c8
sending server_name in welcome packet 2024-08-30 14:51:27 +02:00
875a1b8ac2
removed useless json syntax checks
its useless since I added check to read_socket_raw
2024-08-30 14:46:45 +02:00
184e71c899
added server_name to server config 2024-08-30 14:40:28 +02:00
972619bafa
fixed server-side pm buffer overflow 2024-08-30 14:31:14 +02:00
17f1329325
removed unused debug stuff 2024-08-30 14:30:55 +02:00
9fd9a4b233
resolving self-pm at client-side :))
haha def no easteregg
2024-08-30 14:12:15 +02:00
809d40ab2e
not sending two packets on self-pm 2024-08-30 13:57:26 +02:00
8bd3df1ae1
added json format validation to read_socket_raw 2024-08-30 13:41:01 +02:00
3fc339a9fb
fully implemented new WHY2_CONFIG_DIR
i moved it to user folder cause it causes permission problems on multi-user machine.
2024-08-30 00:54:17 +02:00
8ef39ada5f
changed WHY2_VERSIONS_NAME 2024-08-30 00:49:45 +02:00
e802f5f483
moved why2_dir from init_config to why2_directory fn 2024-08-30 00:47:52 +02:00
db1d487a2e
moved WHY2_CONFIG_DIR to core-flags 2024-08-30 00:44:38 +02:00
04d411e42a
declared why2_dir fn 2024-08-30 00:42:40 +02:00
ca97b45059
solved infinite loop in read_socket_raw
by the worst possible solution but yeahhh
2024-08-30 00:31:59 +02:00
d12936d1d0
showing pm to both users 2024-08-30 00:23:49 +02:00
2e5e9682a3
decoding pm from end-user 2024-08-30 00:21:59 +02:00
8fcddab726
sending both author and recipient in pm 2024-08-30 00:21:35 +02:00
2d5a18d667
added infinite loop todo
i mean yk, it works but its shit
2024-08-29 23:35:46 +02:00
af233c44ef
sending pm back to end user on server-side 2024-08-28 21:53:19 +02:00
2cc3cd0b78
sending pm back to end user on server-side 2024-08-28 21:52:15 +02:00
3314a82b3a
sending pm to server 2024-08-28 21:24:32 +02:00
456b523012
created WHY2_CHAT_CODE_PM_SERVER code 2024-08-28 14:00:24 +02:00
290ad5c101
moved invalid command/stuff into fn 2024-08-28 13:48:45 +02:00
854e8399fb
trimming string on command fn 2024-08-28 13:48:18 +02:00
7647be3daf
starting IDs from 1 instead of 0
atoi returns 0 in failure, meaning all typos would send PMs to first user
2024-08-28 13:38:17 +02:00
963e75da51
clearing arg on command 2024-08-28 13:21:33 +02:00
66ceb25a89
comment typo fix 2024-08-28 12:59:43 +02:00
0dfd0218e1
added version and pm cmd to help 2024-08-28 12:59:09 +02:00
64773d1f30
implemented version cmd receive half on client-side 2024-08-28 12:45:48 +02:00
41bbfc2b18
reverted the demented why2_get_version 2024-08-28 12:44:33 +02:00
6adf4a391a
removed stupid get_version
im so fucking dumb... i was sending latest why2 verison instead of current
2024-08-28 12:40:30 +02:00
1735da3807
moved why2_get_version string extraction to get_version 2024-08-28 12:21:59 +02:00
ef235e48f7
created server-side code for version command
sending the version back to client
2024-08-28 12:13:59 +02:00
e30e2dea59
created WHY2_CHAT_CODE_VERSION_SERVER code 2024-08-28 12:07:32 +02:00
e5e6460908
changed comment of get_version 2024-08-28 11:58:47 +02:00
debf90e5d2
implemented why2_get_version in why2_check_version 2024-08-28 11:55:29 +02:00
b92ed3d6a8
declared why2_get_version 2024-08-28 11:48:52 +02:00