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

Create a log entry every time a user edits a text file (using internal editor).

parent eac344d0
No related branches found
No related tags found
No related merge requests found
...@@ -990,6 +990,9 @@ void sbbs_t::editfile(char *fname) ...@@ -990,6 +990,9 @@ void sbbs_t::editfile(char *fname)
bprintf(text[SavedNBytes],l,lines); bprintf(text[SavedNBytes],l,lines);
close(file); close(file);
free(buf); free(buf);
SAFEPRINTF2(str,"%s created or edited file: %s",useron.alias, fname);
logline(nulstr,str);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment