From d40ffdc76b91fd056946f78d2a04bcb01f6744e8 Mon Sep 17 00:00:00 2001 From: icedream Date: Thu, 5 Nov 2015 00:06:58 +0100 Subject: [PATCH] Fix #34 by removing useless length check for "changenick" command. --- app.iced | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.iced b/app.iced index fc93a2f..bbf599f 100644 --- a/app.iced +++ b/app.iced @@ -323,7 +323,7 @@ ts3clientService.on "started", (ts3proc) => vlc.audio.volume = vlcVolume = vol ts3query.sendtextmessage args.targetmode, invoker.id, "Volume set to #{vol}%." when "changenick" - nick = if paramline.length > params[0].length then paramline else params[0] + nick = paramline Sync () => try ts3query.clientupdate.sync ts3query, { client_nickname: nick }