diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1575,14 +1575,14 @@ xs_list *history_list(snac *snac) | |||
| 1575 | } | 1575 | } |
| 1576 | 1576 | ||
| 1577 | 1577 | ||
| 1578 | void lastlog_write(snac *snac) | 1578 | void lastlog_write(snac *snac, const char *source) |
| 1579 | /* writes the last time the user logged in */ | 1579 | /* writes the last time the user logged in */ |
| 1580 | { | 1580 | { |
| 1581 | xs *fn = xs_fmt("%s/lastlog.txt", snac->basedir); | 1581 | xs *fn = xs_fmt("%s/lastlog.txt", snac->basedir); |
| 1582 | FILE *f; | 1582 | FILE *f; |
| 1583 | 1583 | ||
| 1584 | if ((f = fopen(fn, "w")) != NULL) { | 1584 | if ((f = fopen(fn, "w")) != NULL) { |
| 1585 | fprintf(f, "%lf\n", ftime()); | 1585 | fprintf(f, "%lf %s\n", ftime(), source); |
| 1586 | fclose(f); | 1586 | fclose(f); |
| 1587 | } | 1587 | } |
| 1588 | } | 1588 | } |