Skip to content
Snippets Groups Projects
Commit e7d6e0b0 authored by echicken's avatar echicken
Browse files

Actually do what I meant to do in the previous commit.

parent 81344d0e
No related branches found
No related tags found
No related merge requests found
......@@ -178,6 +178,8 @@ var putOneliner = function(oneliner) {
)
)
);
if(onelinersFrame.data_height > onelinersFrame.height)
onelinersFrame.scroll(0, 1);
}
var cycle = function() {
......@@ -210,9 +212,7 @@ var main = function() {
userInput = userInput.replace(/\\1/g, ascii(1));
if(console.strlen(userInput) < 1)
continue;
var o = postOneliner(user.alias, userInput);
if(o)
putOneliner(o);
postOneliner(user.alias, userInput);
}
continue;
}
......
......@@ -60,7 +60,7 @@ var Oneliners = function(server, port, callback) {
}
this.post = function(alias, oneliner) {
var o = strip_ctrl(oneliner.oneliner);
var o = strip_ctrl(oneliner);
if(typeof o == "undefined")
return false;
var obj = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment