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
df765087
Commit
df765087
authored
7 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added sysop chat availability toggle to the System Toggle menu:
creates/deletes the file: ctrl/sysavail.chat
parent
1ffa4404
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
+9
-0
9 additions, 0 deletions
src/sbbs3/umonitor/umonitor.c
with
9 additions
and
0 deletions
src/sbbs3/umonitor/umonitor.c
+
9
−
0
View file @
df765087
...
...
@@ -1039,6 +1039,9 @@ int main(int argc, char** argv) {
}
if
(
j
==
0
)
{
BOOL
sysop_avail
=
sysop_available
(
&
cfg
);
int
sysop_chat_opt
;
/* System Options */
i
=
0
;
strcpy
(
opt
[
i
++
],
"Run SCFG"
);
...
...
@@ -1050,6 +1053,7 @@ int main(int argc, char** argv) {
strcpy
(
opt
[
i
++
],
"Recycle servers"
);
strcpy
(
opt
[
i
++
],
"Edit CFG/INI files"
);
strcpy
(
opt
[
i
++
],
"Edit trashcan files"
);
sysop_chat_opt
=
i
++
;
opt
[
i
][
0
]
=
0
;
uifc
.
helpbuf
=
"`System Options`
\n
"
"`------------`
\n\n
"
...
...
@@ -1069,6 +1073,7 @@ int main(int argc, char** argv) {
done
=
0
;
i
=
0
;
while
(
!
done
)
{
sprintf
(
opt
[
sysop_chat_opt
],
"Turn Sysop Chat availability %s"
,
sysop_avail
?
"Off"
:
"On"
);
switch
(
uifc
.
list
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"System Options"
,
opt
))
{
case
-
1
:
done
=
1
;
...
...
@@ -1118,6 +1123,10 @@ int main(int argc, char** argv) {
case
8
:
edit_can
(
&
cfg
);
break
;
case
9
:
sysop_avail
=
!
sysop_avail
;
set_sysop_availability
(
&
cfg
,
sysop_avail
);
break
;
}
}
continue
;
...
...
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