00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _EGG_TANDEM_H
00026 #define _EGG_TANDEM_H
00027
00028
00029 typedef struct tand_t_struct {
00030 char bot[HANDLEN + 1];
00031 struct tand_t_struct *via;
00032 struct tand_t_struct *uplink;
00033 struct tand_t_struct *next;
00034 int ver;
00035 char share;
00036 } tand_t;
00037
00038
00039 typedef struct {
00040 char nick[HANDLEN + 1];
00041 char bot[HANDLEN + 1];
00042 int sock;
00043 int chan;
00044 char *from;
00045 char flag;
00046 char status;
00047 time_t timer;
00048 char *away;
00049 } party_t;
00050
00051
00052 #define PLSTAT_AWAY 0x001
00053 #define IS_PARTY 0x002
00054
00055
00056
00057
00058 #define NEAT_BOTNET 1029900
00059 #define GLOBAL_CHANS 100000
00060
00061
00062 #ifndef MAKING_MODS
00063
00064 void send_tand_but(int, char *, int);
00065 void botnet_send_chan(int, char *, char *, int, char *);
00066 void botnet_send_chat(int, char *, char *);
00067 void botnet_send_act(int, char *, char *, int, char *);
00068 void botnet_send_ping(int);
00069 void botnet_send_pong(int);
00070 void botnet_send_priv EGG_VARARGS(int, arg1);
00071 void botnet_send_who(int, char *, char *, int);
00072 void botnet_send_infoq(int, char *);
00073 void botnet_send_unlinked(int, char *, char *);
00074 void botnet_send_traced(int, char *, char *);
00075 void botnet_send_trace(int, char *, char *, char *);
00076 void botnet_send_unlink(int, char *, char *, char *, char *);
00077 void botnet_send_link(int, char *, char *, char *);
00078 void botnet_send_update(int, tand_t *);
00079 void botnet_send_nlinked(int, char *, char *, char, int);
00080 void botnet_send_reject(int, char *, char *, char *, char *, char *);
00081 void botnet_send_zapf(int, char *, char *, char *);
00082 void botnet_send_zapf_broad(int, char *, char *, char *);
00083 void botnet_send_motd(int, char *, char *);
00084 void botnet_send_filereq(int, char *, char *, char *);
00085 void botnet_send_filereject(int, char *, char *, char *);
00086 void botnet_send_filesend(int, char *, char *, char *);
00087 void botnet_send_away(int, char *, int, char *, int);
00088 void botnet_send_idle(int, char *, int, int, char *);
00089 void botnet_send_join_idx(int, int);
00090 void botnet_send_join_party(int, int, int, int);
00091 void botnet_send_part_idx(int, char *);
00092 void botnet_send_part_party(int, int, char *, int);
00093 void botnet_send_bye();
00094 void botnet_send_nkch_part(int, int, char *);
00095 void botnet_send_nkch(int, char *);
00096 int bots_in_subtree(tand_t *);
00097 int users_in_subtree(tand_t *);
00098
00099 #endif
00100
00101
00102 #define b_status(a) (dcc[a].status)
00103 #define b_version(a) (dcc[a].u.bot->version)
00104 #define b_linker(a) (dcc[a].u.bot->linker)
00105 #define b_numver(a) (dcc[a].u.bot->numver)
00106
00107 #endif