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