/[cvs]/eggdrop1.9/src/tandem.h
ViewVC logotype

Annotation of /eggdrop1.9/src/tandem.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download) (as text)
Mon Sep 13 14:36:18 1999 UTC (20 years, 1 month ago) by segfault
Branch: MAIN
File MIME type: text/x-csrc
Initial commit based off of .29 cvs

1 segfault 1.1 /*
2     * This file is part of the eggdrop source code
3     * copyright (c) 1997 Robey Pointer
4     * and is distributed according to the GNU general public license.
5     * For full details, read the top of 'main.c' or the file called
6     * COPYING that was distributed with this code.
7     */
8    
9     #ifndef _H_TANDEM
10     #define _H_TANDEM
11    
12     /* keep track of tandem-bots in the chain */
13     typedef struct tand_t_struct {
14     char bot[HANDLEN + 1];
15     struct tand_t_struct *via;
16     struct tand_t_struct *uplink;
17     struct tand_t_struct *next;
18     int ver;
19     char share;
20     } tand_t;
21    
22     /* keep track of party-line members */
23     typedef struct {
24     char nick[HANDLEN + 1];
25     char bot[HANDLEN + 1];
26     int sock;
27     int chan;
28     char *from;
29     char flag;
30     char status;
31     time_t timer; /* track idle time */
32     char *away;
33     } party_t;
34    
35     /* status: */
36     #define PLSTAT_AWAY 0x01
37     #define IS_PARTY 0x02
38    
39     /* minimum version that uses tokens & base64 ints */
40     /* for channel msg's */
41     #define NEAT_BOTNET 1029900
42     #define GLOBAL_CHANS 100000
43    
44     #ifndef MAKING_MODS
45     void send_tand_but(int, char *, int);
46     void botnet_send_chan(int, char *, char *, int, char *);
47     void botnet_send_chat(int, char *, char *);
48     void botnet_send_act(int, char *, char *, int, char *);
49     void botnet_send_ping(int);
50     void botnet_send_pong(int);
51     void botnet_send_priv VARARGS(int, arg1);
52     void botnet_send_who(int, char *, char *, int);
53     void botnet_send_infoq(int, char *);
54     void botnet_send_unlinked(int, char *, char *);
55     void botnet_send_traced(int, char *, char *);
56     void botnet_send_trace(int, char *, char *, char *);
57     void botnet_send_unlink(int, char *, char *, char *, char *);
58     void botnet_send_link(int, char *, char *, char *);
59     void botnet_send_update(int, tand_t *);
60     void botnet_send_nlinked(int, char *, char *, char, int);
61     void botnet_send_reject(int, char *, char *, char *, char *, char *);
62     void botnet_send_zapf(int, char *, char *, char *);
63     void botnet_send_zapf_broad(int, char *, char *, char *);
64     void botnet_send_motd(int, char *, char *);
65     void botnet_send_filereq(int, char *, char *, char *);
66     void botnet_send_filereject(int, char *, char *, char *);
67     void botnet_send_filesend(int, char *, char *, char *);
68     void botnet_send_away(int, char *, int, char *, int);
69     void botnet_send_idle(int, char *, int, int, char *);
70     void botnet_send_join_idx(int, int);
71     void botnet_send_join_party(int, int, int, int);
72     void botnet_send_part_idx(int, char *);
73     void botnet_send_part_party(int, int, char *, int);
74     void botnet_send_bye();
75     void botnet_send_nkch_part(int, int, char *);
76     void botnet_send_nkch(int, char *);
77    
78     #endif
79    
80     #define b_status(a) (dcc[a].status)
81     #define b_version(a) (dcc[a].u.bot->version)
82     #define b_linker(a) (dcc[a].u.bot->linker)
83     #define b_numver(a) (dcc[a].u.bot->numver)
84    
85     #define safe_str(a) (a ? a : "")
86     #endif

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23