From e7d6e0b0f11350031b276a3498f73ac19efae059 Mon Sep 17 00:00:00 2001
From: echicken <>
Date: Sat, 6 Sep 2014 15:49:33 +0000
Subject: [PATCH] Actually do what I meant to do in the previous commit.

---
 xtrn/oneliners/framed.js | 6 +++---
 xtrn/oneliners/lib.js    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/xtrn/oneliners/framed.js b/xtrn/oneliners/framed.js
index 55570b7bdb..b215365b14 100644
--- a/xtrn/oneliners/framed.js
+++ b/xtrn/oneliners/framed.js
@@ -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;
 		}
diff --git a/xtrn/oneliners/lib.js b/xtrn/oneliners/lib.js
index 6090169e68..571b1cb904 100644
--- a/xtrn/oneliners/lib.js
+++ b/xtrn/oneliners/lib.js
@@ -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 = {
-- 
GitLab