Remove code checking the nickname length.

develop
Icedream 2015-11-04 23:39:25 +01:00
parent 2b7da8705f
commit 091f77f352
1 changed files with 0 additions and 3 deletions

View File

@ -324,9 +324,6 @@ ts3clientService.on "started", (ts3proc) =>
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 = if paramline.length > params[0].length then paramline else params[0]
if nick.length < 3 or nick.length > 30
ts3query.sendtextmessage args.targetmode, invoker.id, "Invalid nickname."
return
Sync () => Sync () =>
try try
ts3query.clientupdate.sync ts3query, { client_nickname: nick } ts3query.clientupdate.sync ts3query, { client_nickname: nick }