Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Synchronet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
142
Issues
142
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main
Synchronet
Compare Revisions
c74ab4184640f9cb37258e655d37d0a22026d8cb...0c5a88e4b517a1a87d9f71592ac9da85b7838cc3
Source
0c5a88e4b517a1a87d9f71592ac9da85b7838cc3
Select Git revision
...
Target
c74ab4184640f9cb37258e655d37d0a22026d8cb
Select Git revision
Compare
Commits (1)
Add BBS property: msg_from_bbsid
· 0c5a88e4
Rob Swindell
authored
Dec 24, 2020
Exposes the FTN BBSID value from the message header (if there is one).
0c5a88e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/sbbs3/js_bbs.cpp
src/sbbs3/js_bbs.cpp
+9
-0
No files found.
src/sbbs3/js_bbs.cpp
View file @
0c5a88e4
...
...
@@ -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
},
...
...