Fix #34 by removing useless length check for "changenick" command.

develop
Icedream 2015-11-05 00:06:58 +01:00
parent 091f77f352
commit d40ffdc76b
1 changed files with 1 additions and 1 deletions

View File

@ -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 }