beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
57 stars 53 forks source link

Add "$set-config-teaser" Host-command. (Prerequisite to fixing #371) #374

Closed DeviousNull closed 2 months ago

DeviousNull commented 2 months ago

This command allows Hosts to specify a string that can be used to quickly describe a lobby's currently-configured settings.

The teaser is currently used in the title of a lobby, similar to the existing behavior but without using the "$rename" command. This gives the benefit of not potentially overriding a custom player-set lobby name.


This PR is a complement to https://github.com/beyond-all-reason/spads_config_bar/pull/136 , and implements the Teiserver-side command used in that PR. Since BarManager's rename functionality is currently broken, it does not particularly matter which of these two PRs is merged first (no harm will be done if BarManager is using a non-existent command).

This PR specifically does not update the $rename command, as that would impact player-set lobby names for any SPADS instances that still use the old BarManager code. Once the new plugin code is running on all servers, I can submit a very short PR to update $rename and fix #371.