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
9bf541ea
Commit
9bf541ea
authored
3 months ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
White-space changes only
parent
b1522b36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/getnode.cpp
+24
-23
24 additions, 23 deletions
src/sbbs3/getnode.cpp
with
24 additions
and
23 deletions
src/sbbs3/getnode.cpp
+
24
−
23
View file @
9bf541ea
...
...
@@ -173,7 +173,7 @@ void sbbs_t::nodesync(bool clearline)
logline
(
LOG_NOTICE
,
nulstr
,
"Interrupted"
);
hangup
();
nodesync_inside
=
0
;
return
;
return
;
}
if
(
thisnode
.
misc
&
NODE_LCHAT
)
{
// pulled into local chat with sysop
...
...
@@ -194,14 +194,14 @@ void sbbs_t::nodesync(bool clearline)
if
(
getnodedat
(
cfg
.
node_num
,
&
thisnode
,
true
))
{
thisnode
.
action
=
action
;
thisnode
.
misc
&=
~
NODE_FCHAT
;
putnodedat
(
cfg
.
node_num
,
&
thisnode
);
putnodedat
(
cfg
.
node_num
,
&
thisnode
);
}
}
if
(
sys_status
&
SS_USERON
&&
memcmp
(
&
nodesync_user
,
&
useron
,
sizeof
(
user_t
)))
{
getusrdirs
();
getusrsubs
();
memcpy
(
&
nodesync_user
,
&
useron
,
sizeof
(
nodesync_user
));
memcpy
(
&
nodesync_user
,
&
useron
,
sizeof
(
nodesync_user
));
}
if
(
sys_status
&
SS_USERON
&&
online
&&
(
timeleft
/
60
)
<
(
5
-
timeleft_warn
)
...
...
@@ -210,7 +210,7 @@ void sbbs_t::nodesync(bool clearline)
if
(
!
(
sys_status
&
SS_MOFF
))
{
attr
(
LIGHTGRAY
);
bprintf
(
text
[
OnlyXminutesLeft
]
,((
ushort
)
timeleft
/
60
)
+
1
,(
timeleft
/
60
)
?
"s"
:
nulstr
);
,((
ushort
)
timeleft
/
60
)
+
1
,(
timeleft
/
60
)
?
"s"
:
nulstr
);
}
}
...
...
@@ -264,7 +264,7 @@ bool sbbs_t::getnmsg(bool clearline)
if
(
clearline
)
this
->
clearline
();
else
if
(
column
)
CRLF
;
CRLF
;
putmsg
(
buf
,
P_NOATCODES
);
free
(
buf
);
...
...
@@ -295,8 +295,8 @@ bool sbbs_t::getnodeext(uint number, char *ext)
for
(
count
=
0
;
count
<
LOOP_NODEDAB
;
count
++
)
{
if
(
count
)
mswait
(
100
);
if
(
lock
(
node_ext
,(
long
)
number
*
128L
,
128
)
!=
0
)
continue
;
if
(
lock
(
node_ext
,(
long
)
number
*
128L
,
128
)
!=
0
)
continue
;
lseek
(
node_ext
,(
long
)
number
*
128L
,
SEEK_SET
);
rd
=
read
(
node_ext
,
ext
,
128
);
unlock
(
node_ext
,(
long
)
number
*
128L
,
128
);
...
...
@@ -314,7 +314,7 @@ bool sbbs_t::getnodeext(uint number, char *ext)
if
(
count
>
(
LOOP_NODEDAB
/
2
))
{
SAFEPRINTF2
(
str
,
"NODE.EXB (node %d) COLLISION - Count: %d"
,
number
+
1
,
count
);
logline
(
"!!"
,
str
);
logline
(
"!!"
,
str
);
}
return
true
;
...
...
@@ -338,8 +338,8 @@ bool sbbs_t::getsmsg(int usernumber, bool clearline)
&&
(
node
.
status
==
NODE_INUSE
||
node
.
status
==
NODE_QUIET
)
&&
node
.
misc
&
NODE_MSGW
)
node
.
misc
&=~
NODE_MSGW
;
putnodedat
(
i
,
&
node
);
}
putnodedat
(
i
,
&
node
);
}
}
if
((
buf
=
readsmsg
(
&
cfg
,
usernumber
))
==
NULL
)
...
...
@@ -377,14 +377,14 @@ int sbbs_t::whos_online(bool listself)
if
(
i
==
cfg
.
node_num
)
{
if
(
listself
)
printnodedat
(
i
,
&
node
);
continue
;
continue
;
}
if
(
node
.
status
==
NODE_INUSE
||
(
SYSOP
&&
node
.
status
==
NODE_QUIET
))
{
printnodedat
(
i
,
&
node
);
if
(
!
lastnodemsg
)
lastnodemsg
=
i
;
j
++
;
}
j
++
;
}
}
if
(
!
j
)
bputs
(
text
[
NoOtherActiveNodes
]);
...
...
@@ -404,7 +404,7 @@ void sbbs_t::nodelist(void)
bputs
(
text
[
NodeLstHdr
]);
for
(
int
i
=
1
;
i
<=
cfg
.
sys_nodes
&&
i
<=
cfg
.
sys_lastnode
;
i
++
)
{
getnodedat
(
i
,
&
node
);
printnodedat
(
i
,
&
node
);
printnodedat
(
i
,
&
node
);
}
}
...
...
@@ -477,13 +477,13 @@ void sbbs_t::printnodedat(uint number, node_t* node)
case
NODE_QUIET
:
if
(
!
SYSOP
)
{
bputs
(
text
[
NodeStatusWaitingForCall
]);
break
;
break
;
}
case
NODE_INUSE
:
if
(
node
->
misc
&
NODE_EXT
)
{
getnodeext
(
number
,
tmp
);
bputs
(
tmp
);
break
;
break
;
}
attr
(
cfg
.
color
[
clr_nodeuser
]);
if
(
node
->
misc
&
NODE_ANON
&&
!
SYSOP
)
...
...
@@ -526,7 +526,7 @@ void sbbs_t::printnodedat(uint number, node_t* node)
if
(
SYSOP
||
chk_ar
(
cfg
.
xtrn
[
i
]
->
ar
,
&
useron
,
&
client
))
bputs
(
cfg
.
xtrn
[
node
->
aux
-
1
]
->
name
);
else
bputs
(
"external program"
);
bputs
(
"external program"
);
}
break
;
case
NODE_DFLT
:
...
...
@@ -562,8 +562,8 @@ void sbbs_t::printnodedat(uint number, node_t* node)
if
(
node
->
aux
&
0x1f00
)
{
/* password */
outchar
(
'*'
);
if
(
SYSOP
)
bprintf
(
" %s"
,
unpackchatpass
(
tmp
,
node
));
}
bprintf
(
" %s"
,
unpackchatpass
(
tmp
,
node
));
}
}
else
bputs
(
"in multinode global chat channel"
);
...
...
@@ -594,19 +594,20 @@ void sbbs_t::printnodedat(uint number, node_t* node)
break
;
default
:
bputs
(
ultoa
(
node
->
action
,
tmp
,
10
));
break
;
}
break
;
}
bputs
(
node_connection_desc
(
this
,
node
->
connection
,
tmp
));
if
(
node
->
action
==
NODE_DLNG
)
{
if
(
cfg
.
sys_misc
&
SM_MILITARY
)
{
hour
=
node
->
aux
/
60
;
mer
[
0
]
=
0
;
mer
[
0
]
=
0
;
}
else
if
((
node
->
aux
/
60
)
>=
12
)
{
if
(
node
->
aux
/
60
==
12
)
hour
=
12
;
else
hour
=
(
node
->
aux
/
60
)
-
12
;
strcpy
(
mer
,
"pm"
);
strcpy
(
mer
,
"pm"
);
}
else
{
if
((
node
->
aux
/
60
)
==
0
)
/* 12 midnite */
...
...
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