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

Unherp the derp for more gooder output.

parent 1a668219
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ function getOneLinerz() {
onelinerzFrame.gotoxy(1, ((console.screen_rows - 9) / 2).toFixed(0));
onelinerzFrame.center("\1H\1W\1ILoading onelinerz from bbs-scene.org...\1N");
frame.cycle();
var response = http.Get("http://bbs-scene.org/api/onelinerzjson.php?limit=" + onelinerzFrame.height + "&ansi=1");
var response = http.Get("http://bbs-scene.org/api/onelinerzjson.php?limit=" + (onelinerzFrame.height - 1) + "&ansi=1");
try {
if(response === undefined || response === null)
throw("Empty response");
......@@ -38,7 +38,7 @@ function getOneLinerz() {
var onelinerz = JSON.parse(response);
onelinerzFrame.clear();
for(var o in onelinerz) {
var userAtBBS = "\1h\1k(\1h\1w" + onelinerz[o].alias.substr(0, 23) + "\1h\1c@\1n\1w" + onelinerz[o].bbsname.substr(0, 23).toLowerCase() + "\1h\1k)";
var userAtBBS = "\1h\1k(\1h\1w" + onelinerz[o].alias.substr(0, 14) + "\1h\1c@\1n\1w" + onelinerz[o].bbsname.substr(0, 8).toLowerCase() + "\1h\1k)";
while(console.strlen(userAtBBS) < 23) {
userAtBBS = "\1h\1k." + userAtBBS;
}
......@@ -54,7 +54,7 @@ function postOneLiner() {
helpFrame.putmsg(line);
helpFrame.gotoxy(50, 1);
helpFrame.putmsg(ascii(180) + "\1h\1w[\1nTAB\1h]\1n to change colors" + ascii(195));
var userAtBBS = "\1h\1k(\1h\1w" + user.alias.substr(0, 23) + "\1h\1c@\1n\1w" + system.qwk_id.substr(0, 23).toLowerCase() + "\1h\1k)";
var userAtBBS = "\1h\1k(\1h\1w" + user.alias.substr(0, 14) + "\1h\1c@\1n\1w" + system.qwk_id.toLowerCase() + "\1h\1k)";
while(console.strlen(userAtBBS) < 23) {
userAtBBS = "\1h\1k." + userAtBBS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment