]>
jfr.im git - irc/quakenet/newserv.git/blob - whowas/whowas.h
5 #define WW_MAXENTRIES 250000
6 #define WW_MASKLEN (HOSTLEN + USERLEN + NICKLEN)
7 #define WW_REASONLEN 512
9 typedef struct whowas
{
12 nick nick
; /* unlinked nick */
14 /* WHOWAS_QUIT or WHOWAS_KILL */
26 extern whowas whowasrecs
[WW_MAXENTRIES
];
27 extern int whowasoffset
; /* points to oldest record */
29 #define WHOWAS_UNUSED 0
33 #define WHOWAS_RENAME 4
35 whowas
*whowas_fromnick(nick
*np
, int standalone
);
36 nick
*whowas_tonick(whowas
*ww
);
37 void whowas_freenick(nick
*np
);
38 whowas
*whowas_chase(const char *target
, int maxage
);
39 const char *whowas_format(whowas
*ww
);
40 void whowas_clean(whowas
*ww
);
41 void whowas_free(whowas
*ww
);
43 unsigned int nextwhowasmarker(void);
45 #endif /* __WHOWAS_H */