]>
jfr.im git - irc/quakenet/newserv.git/blob - helpmod2/hticket.h
1 /* hchannel invite ticket */
2 /* currently uses a list, if it's insufficient a faster datastructure will be used */
9 #include "../irc/irc_config.h"
10 #include "../nick/nick.h"
12 #define HTICKET_EXPIRATION_TIME (2 * HDEF_d)
14 typedef struct hticket_struct
16 char authname
[ACCOUNTLEN
+1];
17 time_t time_expiration
;
18 struct hticket_struct
*next
;
21 hticket
*hticket_get(const char *, struct hchannel_struct
*);
22 hticket
*hticket_del(hticket
*, struct hchannel_struct
*);
23 hticket
*hticket_add(const char *, time_t expiration
, struct hchannel_struct
*);
24 int hticket_count(void);
25 void hticket_remove_expired(void);