diff --git a/src/data/teeworlds_strings.asm b/src/data/teeworlds_strings.asm index 4d2cb3f..75f02e4 100644 --- a/src/data/teeworlds_strings.asm +++ b/src/data/teeworlds_strings.asm @@ -59,6 +59,8 @@ s_usage db '[usage] ./teeworlds_asmr "connect 127.0.0.1:8303"', 0x0a l_s_usage equ $ - s_usage s_no_cli_args db "[client] no cli arguments given defaulting to connect localhost ...", 0x0a l_s_no_cli_args equ $ - s_no_cli_args +s_3_stars db "***" +l_s_3_stars equ $ - s_3_stars s_sending_packet_with_size db "[client] sending packet with size: " l_s_sending_packet_with_size equ $ - s_sending_packet_with_size diff --git a/src/on_chat.asm b/src/on_chat.asm index e86c6b8..f612f0f 100644 --- a/src/on_chat.asm +++ b/src/on_chat.asm @@ -19,12 +19,22 @@ on_chat: print_label s_chat + ; check srv msg + cmp r8w, -1 + jne .human_msg + + .server_msg: + print_label s_3_stars + jmp .message_content + + .human_msg: ; get author name mov rbx, r8 imul rbx, TW_CLIENT_SIZE lea rsi, [tw_clients + rbx + TW_CLIENT_NAME_OFFSET] print_c_str rsi + .message_content: call print_colon call print_space