1 /* 2 * whowas.h: header file for whowas.c 3 * 4 * Written by Scott H Kilau 5 * 6 * CopyRight(c) 1995 7 * 8 * See the COPYRIGHT file, or do a HELP IRCII COPYRIGHT 9 * 10 * $Id: whowas.h,v 1.4 2000-08-26 10:51:54 f Exp $ 11 * 12 * Modified by Flier 13 */ 14 15 #ifndef _whowas_h_ 16 #define _whowas_h_ 17 18 #include "irc.h" 19 #include "window.h" 20 #include "names.h" 21 22 /* WhowasList: structure for the whowas buffer linked list */ 23 typedef struct whowaslist_stru 24 { 25 struct whowaslist_stru *next; /* pointer to next whowas entry */ 26 time_t time; /* time added on list */ 27 char *channel; /* channel they left from */ 28 NickList *nicklist; /* NickList entry */ 29 } WhowasList; 30 31 /* WhowasChanList: structure for the whowas channel buffer linked list */ 32 typedef struct whowaschanlist_stru 33 { 34 struct whowaschanlist_stru *next; /* pointer to next whowas chan entry */ 35 time_t time; /* time added on list */ 36 ChannelList *channellist; /* ChannelList entry */ 37 } WhowasChanList; 38 39 extern WhowasList *whowas_userlist_list; 40 extern WhowasList *whowas_reg_list; 41 extern WhowasChanList *whowas_chan_list; 42 43 extern WhowasList *check_whowas_buffer _((char *, char *, char *, int)); 44 extern void add_to_whowas_buffer _((NickList *, char */*, char *, char **/)); 45 extern int remove_oldest_whowas _((WhowasList **, time_t, int)); 46 extern void clean_whowas_list _((void)); 47 extern void synch_whowas_adduser _((struct friends *)); 48 extern void synch_whowas_unuser _((struct friends *)); 49 extern void synch_whowas_addshit _((struct autobankicks *)); 50 extern void synch_whowas_unshit _((struct autobankicks *)); 51 extern WhowasChanList *check_whowas_chan_buffer _((char *, int)); 52 extern int add_to_whowas_chan_buffer _((ChannelList *)); 53 extern int remove_oldest_chan_whowas _((WhowasChanList **, time_t, int)); 54 extern void clean_whowas_chan_list _((void)); 55 extern void swap_whowas_chan_win_ptr _((Window *, Window *)); 56 57 #endif /* _whowas_h_ */ 58