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