]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
rcon: rewrite variable expansion support, related fixes
authorbones_was_here <bones_was_here@xonotic.au>
Wed, 7 Feb 2024 16:21:51 +0000 (02:21 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Wed, 7 Feb 2024 18:37:46 +0000 (04:37 +1000)
commitbec702479a73a63e5454bd7aef014a8ab335e030
treea862c89741964ac545e2ae525c9be18f008499ce
parent954fcc4fae8e18e4cb50a7dfafd9446eb239ec39
rcon: rewrite variable expansion support, related fixes

Fixes https://gitlab.com/xonotic/darkplaces/-/issues/407
In 48d83538ef13596d4569d46ae66467b63b945546 I broke the return of the
rcon command output to the client.

Fixes unterminated string warnings on the server when the
rcon_password feature of multiple space-delimited passwords is used.
Fixes possibility of the cbuf to use more memory than its intended
maximum.

In the client you can send the variable such that the server will
expand it (not the client) like this: rcon echo $$sv_worldmessage

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
cmd.c
cmd.h
netconn.c