Showing the hostmessage only if its not empty (https://github.com/TeaSpeak/TeaClient/issues/22)
parent
84face7e3b
commit
323b4e7006
|
@ -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)
|
||||
|
|
|
@ -208,16 +208,18 @@ export class ConnectionCommandHandler extends AbstractCommandHandler {
|
|||
if(properties.virtualserver_hostmessage_mode > 0) {
|
||||
if(properties.virtualserver_hostmessage_mode == 1) {
|
||||
/* show in log */
|
||||
this.connection_handler.log.log(server_log.Type.SERVER_HOST_MESSAGE, {
|
||||
message: properties.virtualserver_hostmessage
|
||||
});
|
||||
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 */
|
||||
createModal({
|
||||
header: tr("Host message"),
|
||||
body: bbcode_chat(properties.virtualserver_hostmessage),
|
||||
footer: undefined
|
||||
}).open();
|
||||
if(properties.virtualserver_hostmessage || properties.virtualserver_hostmessage_mode == 3)
|
||||
createModal({
|
||||
header: tr("Host message"),
|
||||
body: bbcode_chat(properties.virtualserver_hostmessage),
|
||||
footer: undefined
|
||||
}).open();
|
||||
|
||||
if(properties.virtualserver_hostmessage_mode == 3) {
|
||||
/* first let the client initialize his stuff */
|
||||
|
|
Loading…
Reference in New Issue