Skip to content
Permalink
Browse files

Fix whitespace available

  • Loading branch information...
Depado committed Feb 12, 2015
1 parent f6514f7 commit b062ae90e2de02d0b7647efcd7d8aa6516e27f6d
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
2 app.js
@@ -81,7 +81,7 @@ io.sockets.on('connection', function (socket) {
socket.on('adduser', function(username){
if(username in usernames) {
socket.emit('error', 'This nickname is already taken.');
} else if(username == 'null' || username == '') {
} else if(username == 'null' || username == '' || username.indexOf(' ') >= 0) {
socket.emit('error', 'This is not a valid nickname.');
} else {
var new_username = validator.escape(username);

0 comments on commit b062ae9

Please sign in to comment.
You can’t perform that action at this time.