Showing the hostmessage only if its not empty (https://github.com/TeaSpeak/TeaClient/issues/22)

canary
WolverinDEV 2020-04-11 10:57:52 +02:00
parent 84face7e3b
commit 323b4e7006
2 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,7 @@
# Changelog:
* **11.03.20**
- Only show the host message when its not empty
* **10.03.20**
- Improved key code displaying
- Added a keymap system (Hotkeys)

View File

@ -208,11 +208,13 @@ export class ConnectionCommandHandler extends AbstractCommandHandler {
if(properties.virtualserver_hostmessage_mode > 0) {
if(properties.virtualserver_hostmessage_mode == 1) {
/* show in log */
if(properties.virtualserver_hostmessage)
this.connection_handler.log.log(server_log.Type.SERVER_HOST_MESSAGE, {
message: properties.virtualserver_hostmessage
});
} else {
/* create modal/create modal and quit */
if(properties.virtualserver_hostmessage || properties.virtualserver_hostmessage_mode == 3)
createModal({
header: tr("Host message"),
body: bbcode_chat(properties.virtualserver_hostmessage),