#define VERSION "1.2.8" /* structure for bot information from config file */ struct botstruct { char *user; char *nick; char *altnick; char *fname; char *channel; char *server; char *awaymsg; int ctcp; int autoop; int port; char *ver; int ns; char *nspass; }; struct botstruct *botinfo; /* structure for parsed server information */ struct serverstruct { char *nick; /* user nick name*/ char *username; /* user name */ char *ip; /* ip address */ char *action; /* irc action */ char *message; /* message */ char *extra; /* last part of server message */ }; struct serverstruct *serverdata; /* pointer to structure */ /* link list of user entries */ struct userdata { char *usernick; char *userip; int userstatus; char *userchan; struct userdata *next; }; /* massdeop list */ struct mddata { char *nick; struct mddata *next; }; /* channel list */ struct channels { char *channel; char *key; struct channels *next; }; struct channels *channeldata; /* pointer to structure */ /* Global variables */ struct userdata *curr; /* current pointer of linked list */ struct userdata *top; /* top pointer of linked list */ struct userdata *prev; /* previous pointer in linked list */ struct mddata *curr2; /* pointers for 2nd linked list of users for massdeops */ struct mddata *top2; struct mddata *prev2; struct channels *curr3; /* channel list pointers */ struct channels *top3; struct channels *prev3; struct channels *temp3; char *protect; /* protected user from massdeops */ int no_parse; long totalbytes;