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) | |||
| 1366 | } | 1366 | } |
| 1367 | 1367 | ||
| 1368 | 1368 | ||
| 1369 | void lastlog_write(snac *snac) | ||
| 1370 | /* writes the last time and date the user logged in */ | ||
| 1371 | { | ||
| 1372 | xs *fn = xs_fmt("%s/lastlog.txt", snac->basedir); | ||
| 1373 | FILE *f; | ||
| 1374 | |||
| 1375 | if ((f = fopen(fn, "w")) != NULL) { | ||
| 1376 | fprintf(f, "%lf\n", ftime()); | ||
| 1377 | fclose(f); | ||
| 1378 | } | ||
| 1379 | } | ||
| 1380 | |||
| 1381 | |||
| 1369 | /** inbox collection **/ | 1382 | /** inbox collection **/ |
| 1370 | 1383 | ||
| 1371 | void inbox_add(const char *inbox) | 1384 | void inbox_add(const char *inbox) |