Commit 3ff57242 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

When auto-deleting inactive users, log their real name too.

parent 54c0696a
...@@ -4647,8 +4647,8 @@ void sbbs_t::daily_maint(void) ...@@ -4647,8 +4647,8 @@ void sbbs_t::daily_maint(void)
&& !(user.misc&(DELETED|INACTIVE)) /* alive */ && !(user.misc&(DELETED|INACTIVE)) /* alive */
&& (cfg.sys_autodel && (now-user.laston)/(long)(24L*60L*60L) && (cfg.sys_autodel && (now-user.laston)/(long)(24L*60L*60L)
> cfg.sys_autodel)) { /* Inactive too long */ > cfg.sys_autodel)) { /* Inactive too long */
SAFEPRINTF3(str,"DAILY: Auto-Deleted %s #%u due to inactivity > %u days" SAFEPRINTF4(str,"DAILY: Auto-Deleted %s (%s) #%u due to inactivity > %u days"
,user.alias, user.number, cfg.sys_autodel); ,user.alias, user.name, user.number, cfg.sys_autodel);
lputs(LOG_NOTICE, str); lputs(LOG_NOTICE, str);
delallmail(user.number, MAIL_ANY); delallmail(user.number, MAIL_ANY);
putusername(&cfg,user.number,nulstr); putusername(&cfg,user.number,nulstr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment