201 Commits

Author SHA1 Message Date
077ecc50c8
printing command info at connection 2024-09-01 19:59:12 +02:00
1011faa67f
allowing spaces in messages 💀 2024-08-31 16:50:41 +02:00
3fa15f5ebb
changed ascii range
Some checks failed
Codacy Scan / Codacy Security Scan (push) Failing after 35s
Test WHY2-logger / test-why2 (why2-logger, configure.sh, ubuntu-latest, ./out/why2-logger-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m21s
Build WHY2-chat / test-why2 (./out/why2-chat-client, configure.sh, ubuntu-latest, ./out/why2-chat-server) (push) Failing after 1m17s
Test WHY2-core / test-why2 (why2, configure.sh, ubuntu-latest, ./out/why2-core-test, valgrind --leak-check=full --show-leak-kinds=reachable --track-origins=yes -s) (push) Failing after 1m19s
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
f539a4bd71
displaying welcome message on client 2024-08-30 15:06:04 +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
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
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
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
64773d1f30
implemented version cmd receive half on client-side 2024-08-28 12:45:48 +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
de4b6a39bf
being correct with user pronouns 2024-08-28 11:42:13 +02:00
59ae168b15
added so pretty way of getting dynamic size of received msg
god damn it, its awesome. Also, I should get rid of the goto in there, that's stupid lol. Gonna do it tmrw ig
2024-08-27 22:42:45 +02:00
d539654cc3
handling LIST code sent back from server 2024-04-28 12:38:34 +02:00
e50184ad66
sedning one separator more on LIST code 2024-04-28 12:37:24 +02:00
bc14effeee
responding to LIST code from client
oh dear satan, this is possibly the worst code I have ever written. Please, if anyone has any idea how to handle strings in C in better ways, let me know.
2024-04-28 11:50:59 +02:00
97ba473143
removed INVALID_COMMAND code
it was unused atp
2024-04-27 12:01:49 +02:00
cfa9f7bcca
implemented WHY2_CHAT_COMMAND_PREFIX on server-side 2024-04-27 11:58:01 +02:00
f07a5fe40f
moved trim_string to header file 2024-04-25 20:52:09 +02:00
e6c570c2c7
prepared trim_string for non-why2-allocated strings 2024-04-20 11:32:18 +02:00
07a4eecd4e
removed the stupid exit command sending
using codes instead
2024-04-19 20:03:20 +02:00
e023207261
added help command 2024-04-19 16:08:54 +02:00
1fc78a2a30
sending server exit_cmd with the initial welcome message 2024-04-17 18:04:45 +02:00
b2c945fe6d
implemented the exit_cmd macro 2024-04-17 17:45:21 +02:00
99c76285a2
added ID to connection node 2024-04-17 17:25:55 +02:00
274a3e1772
revert "sending ssqc on every message loop end"
this reverts commit b14c8de7105a9f570a227ce7f8608103b205eca9

it seems that I created the check for some reason
2024-02-26 15:19:41 +01:00
4d6b29e4c6
implemented max_message_length in message loop 2024-02-25 20:34:18 +01:00
b14c8de710
sending ssqc on every message loop end 2024-02-25 14:23:53 +01:00
22282623af
implemented trim_string in message loop 2024-02-25 13:16:12 +01:00
157d56ac57
not disconnecting user on null message 2024-02-25 13:15:54 +01:00
47fd5f01b6
created trim_string fn 2024-02-25 13:15:29 +01:00
20e805a8ad
removed why2_read_socket fn
using raw data in client loop
2024-02-22 09:31:46 +01:00
fd68b0d01a
implemented max/min username 2024-02-21 21:38:38 +01:00
c2b9c7c57a
possible loop problems fix 2024-02-21 21:35:13 +01:00
d30cd4f714
simplified json/config to int parse 2024-02-21 21:33:50 +01:00