]>
jfr.im git - irc/quakenet/newserv.git/blob - whowas/whowas.h
2 #define WW_MAXENTRIES 100000
3 #define WW_MASKLEN (HOSTLEN + USERLEN + NICKLEN)
4 #define WW_REASONLEN 512
6 typedef struct whowas
{
8 char nick
[NICKLEN
+ 1];
9 char ident
[USERLEN
+ 1];
10 char host
[HOSTLEN
+ 1];
11 struct irc_in_addr ip
;
12 char realname
[REALLEN
+ 1];
16 /* WHOWAS_QUIT or WHOWAS_KILL */
26 extern whowas
*whowas_head
, *whowas_tail
;
27 extern int whowas_count
;
31 #define WHOWAS_RENAME 2
33 whowas
*whowas_fromnick(nick
*np
);
34 whowas
*whowas_chase(const char *nick
, int maxage
);
35 void whowas_spew(whowas
*ww
, nick
*np
);
36 void whowas_free(whowas
*ww
);