diff options
Diffstat (limited to 'user.h')
-rw-r--r-- | user.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -1,6 +1,8 @@ #ifndef _USER_H_ #define _USER_H_ +#include <time.h> + #define USERS_MAX 1000 struct user_t { @@ -8,13 +10,26 @@ struct user_t { char *nick; unsigned long lines[24*4]; unsigned long long words, characters, kicks, kicked, monolog_lines, monologs; + time_t seen_first, seen_last, last_join, time_total; struct user_t *real_user, *next; }; +struct user_time_t { + unsigned long hash; + char *nick; + time_t seen_first, seen_last, last_join, time_total; + struct user_time_t *real_user, *next; +}; + void user_init(); struct user_t *user_get(char *nick); void user_free(); +void user_time_init(); +struct user_time_t *user_time_get(char *nick, int ignore_real); +void user_time_free(); + extern struct user_t *users; +extern struct user_time_t *users_time; #endif |