Author Topic: [Bug?] Alias in Chat  (Read 1526 times)

ic3y

  • Committee Member
  • Autococker
  • Posts: 1398
[Bug?] Alias in Chat
« on: January 04, 2014, 06:53:43 AM »
I have two aliases:
Code: [Select]
alias +cball "cvar_set ball_life 1"
alias -cball "cvar_set ball_life 0"
bind v +cball

When I open the chat and enter a "v", my alias will be used.

http://banterous.co.uk/demo/1018
« Last Edit: January 04, 2014, 07:36:30 AM by ic3 »

not_payl_obviously

  • 68 Carbine
  • Posts: 415
Re: [Bug?] Alias in Chat
« Reply #1 on: January 04, 2014, 09:19:15 AM »
I have two aliases:
[...]
When I open the chat and enter a "v", my alias will be used.
Aaaand? I found this weird that we are supposed to know what's wrong. So far i'm unable to notice any bugs.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: [Bug?] Alias in Chat
« Reply #2 on: January 06, 2014, 11:31:08 PM »
Just checked the behavior, and it looks like it only does the - alias.  This is probably to make sure you don't:

press v
press your chat key
release v
exit chat

If you did that, without the release behavior, you would get stuck in the + state without executing the - state.

For example, if you pressed the move forward key, opened chat, then released the forward key, you'd be stuck moving forward without the key being pressed.

Is this causing a problem?

ic3y

  • Committee Member
  • Autococker
  • Posts: 1398
Re: [Bug?] Alias in Chat
« Reply #3 on: January 07, 2014, 05:32:40 AM »
Okay, then close it.