Bugfix in CTCP

git-svn-id: svn://kolibrios.org@9992 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2024-03-11 21:52:38 +00:00
parent 97d2b9be48
commit 5f4e6c65ce
2 changed files with 5 additions and 9 deletions

View File

@ -13,7 +13,7 @@
;; ;; ;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
version equ '0.36' version equ '0.36b'
; connection status ; connection status
STATUS_DISCONNECTED = 0 STATUS_DISCONNECTED = 0

View File

@ -223,10 +223,7 @@ cmd_usr_msg:
call print_char call print_char
pop esi pop esi
push esi
call print_asciiz call print_asciiz
pop esi
lea esi, [edi - packetbuf] lea esi, [edi - packetbuf]
mcall send, [socketnum], packetbuf, , 0 mcall send, [socketnum], packetbuf, , 0
@ -530,7 +527,7 @@ cmd_usr_ctcp:
mov al, 0x01 mov al, 0x01
stosb stosb
push edi esi push esi
; copy the message itself ; copy the message itself
@@: @@:
@ -550,7 +547,6 @@ cmd_usr_ctcp:
stosb stosb
mov ax, 0x0a0d mov ax, 0x0a0d
stosw stosw
mov byte[edi], 0
; now print to the window ; now print to the window
if TIMESTAMP if TIMESTAMP
@ -560,7 +556,7 @@ cmd_usr_ctcp:
mov esi, ctcp_header mov esi, ctcp_header
call print_asciiz call print_asciiz
mov esi, packetbuf+8 mov esi, user_command+6
mov bl, ' ' mov bl, ' '
call print_string call print_string
@ -572,13 +568,13 @@ cmd_usr_ctcp:
pop esi pop esi
call print_asciiz call print_asciiz
pop esi
mov al, 10
call print_char
; now send it away ; now send it away
lea esi, [edi - packetbuf] ; calculate length lea esi, [edi - packetbuf] ; calculate length
mcall send, [socketnum], packetbuf, , 0 ; and finally send to server mcall send, [socketnum], packetbuf, , 0 ; and finally send to server
.fail: .fail:
ret ret