Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
3ff57242
Commit
3ff57242
authored
Mar 31, 2022
by
Rob Swindell
💬
Browse files
When auto-deleting inactive users, log their real name too.
parent
54c0696a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/main.cpp
src/sbbs3/main.cpp
+2
-2
No files found.
src/sbbs3/main.cpp
View file @
3ff57242
...
...
@@ -4647,8 +4647,8 @@ void sbbs_t::daily_maint(void)
&&
!
(
user
.
misc
&
(
DELETED
|
INACTIVE
))
/* alive */
&&
(
cfg
.
sys_autodel
&&
(
now
-
user
.
laston
)
/
(
long
)(
24L
*
60L
*
60L
)
>
cfg
.
sys_autodel
))
{
/* Inactive too long */
SAFEPRINTF
3
(
str
,
"DAILY: Auto-Deleted %s #%u due to inactivity > %u days"
,
user
.
alias
,
user
.
number
,
cfg
.
sys_autodel
);
SAFEPRINTF
4
(
str
,
"DAILY: Auto-Deleted %s
(%s)
#%u due to inactivity > %u days"
,
user
.
alias
,
user
.
name
,
user
.
number
,
cfg
.
sys_autodel
);
lputs
(
LOG_NOTICE
,
str
);
delallmail
(
user
.
number
,
MAIL_ANY
);
putusername
(
&
cfg
,
user
.
number
,
nulstr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment