HelloKittyOnline / HKO-re

15 stars 2 forks source link

"Kick" server command gives error if not used with arguments #43

Closed Qiangong2 closed 1 year ago

Qiangong2 commented 1 year ago

This is entirely a QoL issue and not anything major, but if you use the "kick" command without any arguments, you receive the following error:

System.IndexOutOfRangeException: Index was outside the bounds of the array.      
   at Server.Commands.Kick(String[] args) in /home/ubuntu/hko/Server/Commands.cs:line 200
   at Server.Commands.Handle(String[] args) in /home/ubuntu/hko/Server/Commands.cs:line 101

Ideally it would instead return a notice asking for them to set a user