Skip to content
Snippets Groups Projects
Commit 4f8382bc authored by rswindell's avatar rswindell
Browse files

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).
parent c2112069
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment