This commit is contained in:
calzoneman 2013-03-21 18:55:32 -05:00
parent 873603465c
commit bbfa4ba53d
3 changed files with 7 additions and 9 deletions

View file

@ -173,7 +173,7 @@ $('#register').click(function() {
});
$('#chatline').keydown(function(ev) {
if(ev.keyCode == 13) {
if(ev.keyCode == 13 && $('#chatline').val() != '') {
socket.emit('chatMsg', {
msg: $('#chatline').val()
});