/* structures and definitions used by users.c & userrec.c */ /* This file is part of the eggdrop source code copyright (c) 1997 Robey Pointer and is distributed according to the GNU general public license. For full details, read the top of 'main.c' or the file called COPYING that was distributed with this code. */ #ifndef _H_USERS #define _H_USERS /* fake users used to store ignores and bans */ #define IGNORE_NAME "*ignore" #define BAN_NAME "*ban" /* channel-specific info */ struct chanuserrec { struct chanuserrec *next; char channel[41]; time_t laston; unsigned int flags; char *info; }; /* new-style userlist */ struct userrec { struct userrec *next; char handle[10]; struct eggqueue *host; char pass[20]; unsigned int flags; unsigned int uploads; unsigned int dnloads; unsigned long upload_k; unsigned long dnload_k; char *email; char *dccdir; char *comment; char *info; /* obsolete */ char *xtra; /* for use in Tcl scripts */ struct chanuserrec *chanrec; time_t laston; char * lastonchan; }; /* flags are in eggdrop.h */ struct userrec *adduser(); struct userrec *get_user_by_handle(); struct userrec *get_user_by_host(); struct userrec *check_chanlist(); struct userrec *check_chanlist_hand(); struct chanuserrec *get_chanrec(); #endif