diff options
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -1366,6 +1366,19 @@ d_char *history_list(snac *snac) } +void lastlog_write(snac *snac) +/* writes the last time and date 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()); + fclose(f); + } +} + + /** inbox collection **/ void inbox_add(const char *inbox) |