-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keybind: Add /bind keybinding command #47
base: master
Are you sure you want to change the base?
Conversation
firstSpace = input.len()-1; | ||
} else { | ||
ret[1] = input.slice(firstSpace+1); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't this return ["foo", null]
for "foo" with "bar" separator? Why not ["foo", ""] to keep away edge cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. My trail of thought was that the used functions return null
when unsuccessful and it felt to me like the most intuitive way to go would be to continue with that tradition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Client side version untested.
Edit: I've given it a go, taken care of some bugs and now it works as expected.
I'd say that this is ready for merge as soon as I've squashed the commits. |
Store a table server- and client-side per session Send commands from client keybind over socket to server
Closes #15
Still untested.I've tested this a bit, found a couple of bugs, fixed those and am now happy with the function of the script.