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
2587e482
Commit
2587e482
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Add BBS property: msg_from_bbsid
Exposes the FTN BBSID value from the message header (if there is one).
parent
5e37bb06
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/js_bbs.cpp
+9
-0
9 additions, 0 deletions
src/sbbs3/js_bbs.cpp
with
9 additions
and
0 deletions
src/sbbs3/js_bbs.cpp
+
9
−
0
View file @
2587e482
...
...
@@ -105,6 +105,7 @@ enum {
,
BBS_PROP_MSG_FROM
,
BBS_PROP_MSG_FROM_EXT
,
BBS_PROP_MSG_FROM_NET
,
BBS_PROP_MSG_FROM_BBSID
,
BBS_PROP_MSG_FROM_AGENT
,
BBS_PROP_MSG_REPLYTO
,
BBS_PROP_MSG_REPLYTO_EXT
...
...
@@ -230,6 +231,7 @@ enum {
,
"message sender name"
,
"message sender extension"
,
"message sender network address"
,
"message sender BBS ID"
,
"message sender agent type"
,
"message reply-to name"
,
"message reply-to extension"
...
...
@@ -571,6 +573,12 @@ static JSBool js_bbs_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
else
p
=
smb_netaddrstr
(
&
sbbs
->
current_msg
->
from_net
,
tmp
);
break
;
case
BBS_PROP_MSG_FROM_BBSID
:
if
(
sbbs
->
current_msg
==
NULL
||
sbbs
->
current_msg
->
ftn_bbsid
==
NULL
)
p
=
nulstr
;
else
// Should we return only the last ID of the QWKnet route here?
p
=
sbbs
->
current_msg
->
ftn_bbsid
;
break
;
case
BBS_PROP_MSG_FROM_AGENT
:
if
(
sbbs
->
current_msg
!=
NULL
)
val
=
sbbs
->
current_msg
->
from_agent
;
...
...
@@ -1044,6 +1052,7 @@ static jsSyncPropertySpec js_bbs_properties[] = {
{
"msg_from"
,
BBS_PROP_MSG_FROM
,
PROP_READONLY
,
310
},
{
"msg_from_ext"
,
BBS_PROP_MSG_FROM_EXT
,
PROP_READONLY
,
310
},
{
"msg_from_net"
,
BBS_PROP_MSG_FROM_NET
,
PROP_READONLY
,
310
},
{
"msg_from_bbsid"
,
BBS_PROP_MSG_FROM_BBSID
,
PROP_READONLY
,
31802
},
{
"msg_from_agent"
,
BBS_PROP_MSG_FROM_AGENT
,
PROP_READONLY
,
310
},
{
"msg_replyto"
,
BBS_PROP_MSG_REPLYTO
,
PROP_READONLY
,
310
},
{
"msg_replyto_ext"
,
BBS_PROP_MSG_REPLYTO_EXT
,
PROP_READONLY
,
310
},
...
...
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