]> jfr.im git - irc/quakenet/newserv.git/blob - whowas/whowas.h
whowas: Keep track of nick changes.
[irc/quakenet/newserv.git] / whowas / whowas.h
1 #define WW_MAXAGE 3600
2 #define WW_MAXENTRIES 100000
3 #define WW_MASKLEN (HOSTLEN + USERLEN + NICKLEN)
4 #define WW_REASONLEN 512
5
6 typedef struct whowas {
7 time_t seen;
8 char nick[NICKLEN + 1];
9 char ident[USERLEN + 1];
10 char host[HOSTLEN + 1];
11 char realname[REALLEN + 1];
12
13 int type;
14
15 /* WHOWAS_QUIT or WHOWAS_KILL */
16 sstring *reason;
17
18 /* WHOWAS_RENAME */
19 sstring *newnick;
20
21 struct whowas *next;
22 struct whowas *prev;
23 } whowas;
24
25 extern whowas *whowas_head, *whowas_tail;
26 extern int whowas_count;
27
28 #define WHOWAS_QUIT 0
29 #define WHOWAS_KILL 1
30 #define WHOWAS_RENAME 2