Skip to content

Commit

Permalink
fix: TeamSpeak2 server name (#544)
Browse files Browse the repository at this point in the history
* fix teamspeak2 server name

* Update CHANGELOG.md
  • Loading branch information
podrivo authored Feb 15, 2024
1 parent e047f9f commit cf01446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Farming Simulator 22 (2021) - Added support (By @Vito0912 #531)
* Farming Simulator 19 (2018) - Added support (By @Vito0912 #531)
* Assetto Corsa - Fixed how `state.numplayers` is set (By @podrivo #538)
* TeamSpeak 2 - Fixed how `state.name` is set (By @podrivo #544)

## 5.0.0-beta.2
* Fixed support for projects using `require`.
Expand Down
1 change: 1 addition & 0 deletions protocols/teamspeak2.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default class teamspeak2 extends Core {
const value = equals === -1 ? '' : line.substring(equals + 1)
state.raw[key] = value
}
if ('server_name' in state.raw) state.name = state.raw.server_name
}

{
Expand Down

0 comments on commit cf01446

Please sign in to comment.