mirror of https://github.com/icedream/ts3bot.git
Fix #34 by removing useless length check for "changenick" command.
parent
091f77f352
commit
d40ffdc76b
2
app.iced
2
app.iced
|
@ -323,7 +323,7 @@ ts3clientService.on "started", (ts3proc) =>
|
||||||
vlc.audio.volume = vlcVolume = vol
|
vlc.audio.volume = vlcVolume = vol
|
||||||
ts3query.sendtextmessage args.targetmode, invoker.id, "Volume set to #{vol}%."
|
ts3query.sendtextmessage args.targetmode, invoker.id, "Volume set to #{vol}%."
|
||||||
when "changenick"
|
when "changenick"
|
||||||
nick = if paramline.length > params[0].length then paramline else params[0]
|
nick = paramline
|
||||||
Sync () =>
|
Sync () =>
|
||||||
try
|
try
|
||||||
ts3query.clientupdate.sync ts3query, { client_nickname: nick }
|
ts3query.clientupdate.sync ts3query, { client_nickname: nick }
|
||||||
|
|
Loading…
Reference in New Issue