Skip to content
Snippets Groups Projects
Commit 0a8c4ce7 authored by rswindell's avatar rswindell
Browse files

errormsg() logs the "useron", when applicable, even for timed events (e.g.

REP unpacking).
parent 02e7accd
No related branches found
No related tags found
No related merge requests found
......@@ -285,9 +285,11 @@ void sbbs_t::errormsg(int line, const char* function, const char *src, const cha
,src, line, function, action, object, access
,extinfo==NULL ? "":"info="
,extinfo==NULL ? "":extinfo);
if(online==ON_LOCAL)
if(online==ON_LOCAL) {
if(useron.number)
safe_snprintf(str+strlen(str),sizeof(str)-strlen(str)," (useron=%s)", useron.alias);
eprintf(LOG_ERR,"%s",str);
else {
} else {
int savatr=curatr;
if(useron.number)
safe_snprintf(str+strlen(str),sizeof(str)-strlen(str)," (useron=%s)", useron.alias);
......
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