summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-08 09:02:45 +0200
committerdefault <nobody@localhost>2023-05-08 09:02:45 +0200
commite2e7bc2d713e469d5af61f58dc85c063bba94e42 (patch)
tree799482b6085d6807f0471798c6244cc3e6f770b0 /data.c
parent29fb145fc471034d563ec49d19f4a2da6e330ff1 (diff)
Added a source (web, mastoapi, etc) to lastlog_write().
Diffstat (limited to 'data.c')
-rw-r--r--data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/data.c b/data.c
index 72b63f8..92574c2 100644
--- a/data.c
+++ b/data.c
@@ -1575,14 +1575,14 @@ xs_list *history_list(snac *snac)
}
-void lastlog_write(snac *snac)
+void lastlog_write(snac *snac, const char *source)
/* writes the last time the user logged in */
{
xs *fn = xs_fmt("%s/lastlog.txt", snac->basedir);
FILE *f;
if ((f = fopen(fn, "w")) != NULL) {
- fprintf(f, "%lf\n", ftime());
+ fprintf(f, "%lf %s\n", ftime(), source);
fclose(f);
}
}