From 4f8382bcc4ff931ce16b1f72ef0d313df0d0e45c Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 4 Jan 2019 22:15:13 +0000 Subject: [PATCH] Partially revert the change in rev 1.63: eprintf() does not log the <useron alias>, so we need to include it in the log message here if we want the current user's alias included in event related log messages (e.g. unpacking QWK-REP packages). --- src/sbbs3/logfile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/logfile.cpp b/src/sbbs3/logfile.cpp index 9f642cc7e2..a7643c3969 100644 --- a/src/sbbs3/logfile.cpp +++ b/src/sbbs3/logfile.cpp @@ -252,7 +252,10 @@ void sbbs_t::errormsg(int line, const char* function, const char *src, const cha ,extinfo==NULL ? "":"info=" ,extinfo==NULL ? "":extinfo); if(online==ON_LOCAL) { - eprintf(LOG_ERR,"%s",str); + if(useron.number) + eprintf(LOG_ERR, "<%s> %s", useron.alias, str); + else + eprintf(LOG_ERR, "%s", str); } else { int savatr=curatr; lprintf(LOG_ERR, "!%s", str); -- GitLab