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
4f376e16
Commit
4f376e16
authored
21 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Toggling the "down node on logoff" toggle will take node offline/put node
online if node is not in use.
parent
d87c91dd
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
src/sbbs3/umonitor/umonitor.c
+12
-6
12 additions, 6 deletions
src/sbbs3/umonitor/umonitor.c
with
12 additions
and
6 deletions
src/sbbs3/umonitor/umonitor.c
+
12
−
6
View file @
4f376e16
...
...
@@ -460,8 +460,7 @@ void node_toggles(int nodenum) {
getnodedat
(
nodenum
,
&
node
,
0
);
i
=
0
;
uifc
.
helpbuf
=
"`Node Toggles:`
\n
"
"
\n
ToDo: Add help (Mention that changes take effect"
"
\n
on menu exit not immediately)"
;
"
\n
ToDo: Add help (Mention that changes take effect immediately)"
;
while
(
save
==
0
)
{
j
=
0
;
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Locked for SysOps only"
,
node
.
misc
&
NODE_LOCK
?
YesStr
:
NoStr
);
...
...
@@ -469,7 +468,7 @@ void node_toggles(int nodenum) {
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Page disabled"
,
node
.
misc
&
NODE_POFF
?
YesStr
:
NoStr
);
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Activity alert disabled"
,
node
.
misc
&
NODE_AOFF
?
YesStr
:
NoStr
);
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Re-run on logoff"
,
node
.
misc
&
NODE_RRUN
?
YesStr
:
NoStr
);
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Down node after logoff"
,
node
.
misc
&
NODE_DOWN
?
YesStr
:
NoStr
);
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Down node after logoff"
,
(
node
.
misc
&
NODE_DOWN
||
(
node
.
status
==
NODE_OFFLINE
))
?
YesStr
:
NoStr
);
sprintf
(
opt
[
j
++
],
"%-30s%3s"
,
"Reset private chat"
,
node
.
misc
&
NODE_RPCHT
?
YesStr
:
NoStr
);
opt
[
j
][
0
]
=
0
;
...
...
@@ -495,7 +494,14 @@ void node_toggles(int nodenum) {
break
;
case
5
:
/* Down */
node
.
misc
^=
NODE_DOWN
;
if
(
node
.
status
==
NODE_INUSE
)
node
.
misc
^=
NODE_DOWN
;
if
(
node
.
status
!=
NODE_INUSE
)
{
if
(
node
.
status
!=
NODE_OFFLINE
)
node
.
status
=
NODE_OFFLINE
;
else
node
.
status
=
NODE_WFC
;
}
break
;
case
6
:
/* Reset chat */
...
...
@@ -510,9 +516,9 @@ void node_toggles(int nodenum) {
uifc
.
msg
(
"Option not implemented"
);
continue
;
}
lock
(
nodefile
,(
long
)(
nodenum
-
1
)
*
sizeof
(
node_t
),
sizeof
(
node_t
));
putnodedat
(
nodenum
,
node
);
}
lock
(
nodefile
,(
long
)(
nodenum
-
1
)
*
sizeof
(
node_t
),
sizeof
(
node_t
));
putnodedat
(
nodenum
,
node
);
}
int
main
(
int
argc
,
char
**
argv
)
{
...
...
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