Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
745b2cde
Commit
745b2cde
authored
12 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Quick workaround for some unknown frame.clear() problem.
I should probably just rewrite this thing at some point.
parent
fed9c4b0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xtrn/bbs-scene.org/onelinerz.js
+4
-7
4 additions, 7 deletions
xtrn/bbs-scene.org/onelinerz.js
with
4 additions
and
7 deletions
xtrn/bbs-scene.org/onelinerz.js
+
4
−
7
View file @
745b2cde
...
...
@@ -48,14 +48,14 @@ function getOneLinerz() {
return
false
;
}
onelinerzFrame
.
clear
();
//
onelinerzFrame.clear();
for
(
var
o
in
onelinerz
)
{
var
userAtBBS
=
"
\
1h
\
1k(
\
1h
\
1w
"
+
onelinerz
[
o
].
alias
.
substr
(
0
,
13
)
+
"
\
1h
\
1c@
\
1n
\
1w
"
+
onelinerz
[
o
].
bbsname
.
substr
(
0
,
7
).
toLowerCase
()
+
"
\
1h
\
1k)
"
;
while
(
console
.
strlen
(
userAtBBS
)
<
23
)
{
userAtBBS
=
"
\
1h
\
1k.
"
+
userAtBBS
;
}
onelinerzFrame
.
putmsg
(
userAtBBS
);
onelinerzFrame
.
putmsg
(
"
\
1n
\
1w
"
+
pipeToCtrlA
(
onelinerz
[
o
].
oneliner
.
substr
(
0
,
console
.
screen_columns
-
24
)));
onelinerzFrame
.
putmsg
(
"
\
1n
\
1w
"
+
pipeToCtrlA
(
onelinerz
[
o
].
oneliner
.
substr
(
0
,
console
.
screen_columns
-
24
))
+
"
\r\n
"
);
onelinerzFrame
.
crlf
();
}
return
true
;
...
...
@@ -109,9 +109,8 @@ function postOneLiner() {
}
piped
+=
userInput
[
c
];
}
try
{
var
response
=
http
.
Post
(
"
http://bbs-scene.org/api/onelinerz.json
"
,
"
&bbsname=
"
+
system
.
qwk_id
.
toLowerCase
()
+
"
&alias=
"
+
user
.
alias
.
replace
(
/
\s
/g
,
"
+
"
)
+
"
&oneliner=
"
+
piped
.
replace
(
/
\s
/g
,
"
+
"
)
+
"
"
,
""
,
""
);
var
response
=
http
.
Post
(
"
http://bbs-scene.org/api/onelinerz.json
"
,
"
&bbsname=
"
+
system
.
qwk_id
.
toLowerCase
()
+
"
&alias=
"
+
user
.
alias
.
replace
(
/
\s
/g
,
"
+
"
)
+
"
&oneliner=
"
+
piped
.
replace
(
/
\s
/g
,
"
+
"
)
+
"
"
,
""
,
""
);
}
catch
(
err
)
{
log
(
LOG_INFO
,
"
bbs-scene onelinerz http error:
"
+
err
);
...
...
@@ -137,8 +136,7 @@ console.clear();
frame
.
open
();
headerFrame
.
load
(
js
.
exec_dir
+
"
onelinerz.bin
"
,
80
,
6
);
headerFrame
.
gotoxy
(
1
,
7
);
headerFrame
.
attr
=
LIGHTGRAY
;
headerFrame
.
putmsg
(
line
);
headerFrame
.
putmsg
(
line
,
LIGHTGRAY
);
helpFrame
.
putmsg
(
line
);
if
(
!
getOneLinerz
())
...
...
@@ -148,5 +146,4 @@ frame.cycle();
console
.
gotoxy
(((
console
.
screen_columns
-
48
)
/
2
).
toFixed
(
0
),
console
.
screen_rows
-
1
);
if
(
!
console
.
noyes
(
"
Post a new oneliner to bbs-scene.org
"
))
postOneLiner
();
frame
.
close
();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment