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
283d4f09
Commit
283d4f09
authored
21 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
More general cleanups.
parent
5dcf245f
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
+10
-18
10 additions, 18 deletions
src/sbbs3/umonitor/umonitor.c
with
10 additions
and
18 deletions
src/sbbs3/umonitor/umonitor.c
+
10
−
18
View file @
283d4f09
...
...
@@ -65,10 +65,8 @@
/* Global Variables */
/********************/
uifcapi_t
uifc
;
/* User Interface (UIFC) Library API */
char
tmp
[
256
];
const
char
*
YesStr
=
"Yes"
;
const
char
*
NoStr
=
"No"
;
box_t
boxch
;
int
lprintf
(
char
*
fmt
,
...)
{
...
...
@@ -128,11 +126,6 @@ void node_toggles(scfg_t *cfg,int nodenum) {
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
||
(
node
.
status
==
NODE_OFFLINE
))
?
YesStr
:
NoStr
);
#if 0 /* There's no reason these should be toggled by the sysop under normal circumstances */
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","Reset private chat",node.misc&NODE_RPCHT ? YesStr : NoStr);
#endif
opt
[
j
][
0
]
=
0
;
switch
(
uifc
.
list
(
WIN_MID
,
0
,
0
,
0
,
&
i
,
0
,
"Node Toggles"
,
opt
))
{
...
...
@@ -244,20 +237,19 @@ int main(int argc, char** argv) {
char
**
mopt
;
int
main_dflt
=
0
;
int
main_bar
=
0
;
char
revision
[
16
];
char
str
[
256
],
ctrl_dir
[
41
],
*
p
;
char
title
[
256
];
int
i
,
j
;
node_t
node
;
char
revision
[
16
];
char
str
[
256
],
ctrl_dir
[
41
],
*
p
;
char
title
[
256
];
int
i
,
j
;
node_t
node
;
char
*
buf
;
int
buffile
;
int
nodefile
;
box_t
boxch
;
scfg_t
cfg
;
/******************/
/* Ini file stuff */
/******************/
char
host_name
[
128
]
=
""
;
/******************/
/* Ini file stuff */
/******************/
char
ini_file
[
MAX_PATH
+
1
];
FILE
*
fp
;
bbs_startup_t
bbs_startup
;
...
...
@@ -279,8 +271,8 @@ int main(int argc, char** argv) {
&&
ctrl_dir
[
strlen
(
ctrl_dir
)
-
1
]
!=
'/'
)
strcat
(
ctrl_dir
,
"/"
);
gethostname
(
host_name
,
sizeof
(
host_name
)
-
1
);
sprintf
(
ini_file
,
"%s%c%s.ini"
,
ctrl_dir
,
BACKSLASH
,
host_name
);
gethostname
(
str
,
sizeof
(
str
)
-
1
);
sprintf
(
ini_file
,
"%s%c%s.ini"
,
ctrl_dir
,
BACKSLASH
,
str
);
#if defined(PREFIX)
if
(
!
fexistcase
(
ini_file
))
sprintf
(
ini_file
,
"%s/etc/sbbs.ini"
,
PREFIX
);
...
...
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