Live Chat kick command socket.io
i have been working out a kick command and have almost finished, the only problem I am having is on client side where name variable is blank. If you see in client/main.js line 89 to 97, this is where the client is comparing their name to the person being kicked, the only problem is that name on the clientside is blank. if you type kick %insertnamehere% then everyone in the chat will message the name of the person being kicked. just wont compare it to there own name. Any ideas why name is blank?