IRCC: when typing /nick without parameters, echo nickname to the screen.

git-svn-id: svn://kolibrios.org@4981 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2014-06-17 20:34:54 +00:00
parent 7dd994b4b2
commit 8234827037

View File

@ -283,7 +283,7 @@ quit_server:
cmd_usr_nick:
cmp [edit1.size], 5
je .dontsend
je .justprint
cmp byte[usercommand+5], ' '
jne .fail
cmp [socketnum], 0
@ -297,7 +297,6 @@ cmd_usr_nick:
mcall send, [socketnum], usercommand+1, , 0
.fail:
ret
; We arent logged in yet, directly change user_nick field and print notification to user.
@ -316,6 +315,7 @@ cmd_usr_nick:
xor al, al
stosb
.justprint:
mov esi, str_nickchange
call print_asciiz