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
52b43ee3
Commit
52b43ee3
authored
1 year ago
by
Dave Cloutier
Committed by
Rob Swindell
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
MRC client updates for Synchronet
parent
e0979e27
No related branches found
No related tags found
2 merge requests
!463
MRC mods by Codefenix (2024-10-20)
,
!276
MRC client updates for Synchronet
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/mrc/mrc-connector.js
+3
-2
3 additions, 2 deletions
xtrn/mrc/mrc-connector.js
xtrn/mrc/mrc-session.js
+8
-6
8 additions, 6 deletions
xtrn/mrc/mrc-session.js
with
11 additions
and
8 deletions
xtrn/mrc/mrc-connector.js
+
3
−
2
View file @
52b43ee3
...
...
@@ -25,7 +25,7 @@ const system_info = f.iniGetObject('info') || {};
f
.
close
();
f
=
undefined
;
const
PROTOCOL_VERSION
=
'
1.
2.9
'
;
const
PROTOCOL_VERSION
=
'
1.
3.0
'
;
const
MAX_LINE
=
256
;
const
FROM_SITE
=
system
.
qwk_id
.
toLowerCase
();
const
SYSTEM_NAME
=
system_info
.
system_name
||
system
.
name
;
...
...
@@ -140,7 +140,8 @@ function client_accept() {
function
client_send
(
message
,
username
)
{
Object
.
keys
(
clients
).
forEach
(
function
(
e
)
{
if
(
message
.
to_user
==
'
NOTME
'
&&
message
.
from_user
==
clients
[
e
].
username
)
return
;
if
(
!
username
||
clients
[
e
].
username
==
username
)
{
// Ignore case for users since MRC is not case sensitive in user context
if
(
!
username
||
clients
[
e
].
username
.
toUpperCase
()
==
username
.
toUpperCase
())
{
log
(
LOG_DEBUG
,
'
Forwarding message to
'
+
clients
[
e
].
username
);
clients
[
e
].
socket
.
sendline
(
JSON
.
stringify
(
message
));
}
...
...
This diff is collapsed.
Click to expand it.
xtrn/mrc/mrc-session.js
+
8
−
6
View file @
52b43ee3
...
...
@@ -170,8 +170,9 @@ function MRC_Session(host, port, user, pass, alias) {
chatters
:
{
help
:
'
List current users
'
},
connected
:
{
help
:
'
List connected BBSs
'
bbses
:
{
help
:
'
List connected BBSs
'
,
command
:
'
CONNECTED
'
},
help
:
{
help
:
'
Display this help message
'
,
...
...
@@ -214,10 +215,10 @@ function MRC_Session(host, port, user, pass, alias) {
}
}
},
notify
:
{
help
:
'
Send a
notification message
to the server
(what?)
'
,
quote
:
{
help
:
'
Send a
raw command
to the server
'
,
callback
:
function
(
str
)
{
this
.
send_command
(
'
NOTIFY:
'
+
str
,
'
ALL
'
);
this
.
send_command
(
str
);
}
},
quit
:
{
...
...
@@ -232,7 +233,8 @@ function MRC_Session(host, port, user, pass, alias) {
command
:
'
LIST
'
},
stats
:
{
help
:
'
Return anonymous server stats
'
help
:
'
Return anonymous server stats
'
,
command
:
'
statistics
'
},
topic
:
{
help
:
'
Change the topic of the current room
'
,
...
...
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