From 3212134e2cbd47411bf0e52133d20ae04249390e Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 15 Apr 2016 00:34:20 +0200 Subject: [PATCH] Fix mute not applied when server_uid in ts3server URL. For this we now set ServerUID in the bookmark entry the bot generates in order to make the TS3Client disable its output device. --- services/ts3client.iced | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/ts3client.iced b/services/ts3client.iced index 415f4c9..49016cf 100644 --- a/services/ts3client.iced +++ b/services/ts3client.iced @@ -281,7 +281,7 @@ module.exports = class TS3ClientService extends services.Service if uri? bookmarkId = "{5125344e-45ec-4510-9bbf-8b940628c5d0}" - await ts3settings.set "Bookmarks", bookmarkId, { + bookmarkData = Name: uriString Address: uri.host or "localhost" Port: uri.port or 9987 @@ -292,7 +292,8 @@ module.exports = class TS3ClientService extends services.Service Autoconnect: false ShowServerQueryClients: false Uuid: bookmarkId - }, defer() + bookmarkData.ServerUID = uri.query?.server_uid if uri.query?.server_uid? + await ts3settings.set "Bookmarks", bookmarkId, bookmarkData, defer() await ts3settings.close defer()