Commit 2811506d authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow anonymous users to send commands.

parent caa22643
......@@ -650,11 +650,6 @@ function addToChatbox(peerId, nick, message, me){
function handleInput() {
let username = getUsername();
if(!username) {
displayError("Sorry, you're anonymous, you cannot chat");
return;
}
let input = document.getElementById('input');
let data = input.value;
input.value = '';
......@@ -723,6 +718,11 @@ function handleInput() {
me = false;
}
if(!username) {
displayError("Sorry, you're anonymous, you cannot chat");
return;
}
addToChatbox(myid, username, message, me);
send({
type: 'chat',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment