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

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

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


Revision 1.5 - (hide annotations) (download) (as text)
Sat Jan 8 21:23:14 2000 UTC (19 years, 7 months ago) by per
Branch: MAIN
CVS Tags: eggdrop104030RC2, eggdrop10403RC1, eggdrop10402RC1, eggdrop10404, eggdrop10403, eggdrop10402, HEAD
Changes since 1.4: +2 -2 lines
File MIME type: text/x-csrc
copyright

1 guppy 1.3 /*
2     * tandem.h
3     *
4 per 1.5 * $Id: tandem.h,v 1.4 1999/12/22 20:30:03 guppy Exp $
5 segfault 1.1 */
6 guppy 1.3 /*
7     * Copyright (C) 1997 Robey Pointer
8 per 1.5 * Copyright (C) 1999, 2000 Eggheads
9 guppy 1.3 *
10     * This program is free software; you can redistribute it and/or
11     * modify it under the terms of the GNU General Public License
12     * as published by the Free Software Foundation; either version 2
13     * of the License, or (at your option) any later version.
14     *
15     * This program is distributed in the hope that it will be useful,
16     * but WITHOUT ANY WARRANTY; without even the implied warranty of
17     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18     * GNU General Public License for more details.
19     *
20     * You should have received a copy of the GNU General Public License
21     * along with this program; if not, write to the Free Software
22     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23     */
24 guppy 1.4
25 guppy 1.3 #ifndef _EGG_TANDEM_H
26     #define _EGG_TANDEM_H
27 segfault 1.1
28     /* keep track of tandem-bots in the chain */
29     typedef struct tand_t_struct {
30     char bot[HANDLEN + 1];
31     struct tand_t_struct *via;
32     struct tand_t_struct *uplink;
33     struct tand_t_struct *next;
34     int ver;
35     char share;
36     } tand_t;
37    
38     /* keep track of party-line members */
39     typedef struct {
40     char nick[HANDLEN + 1];
41     char bot[HANDLEN + 1];
42     int sock;
43     int chan;
44     char *from;
45     char flag;
46     char status;
47     time_t timer; /* track idle time */
48     char *away;
49     } party_t;
50    
51     /* status: */
52     #define PLSTAT_AWAY 0x01
53     #define IS_PARTY 0x02
54    
55     /* minimum version that uses tokens & base64 ints */
56     /* for channel msg's */
57     #define NEAT_BOTNET 1029900
58     #define GLOBAL_CHANS 100000
59    
60     #ifndef MAKING_MODS
61     void send_tand_but(int, char *, int);
62     void botnet_send_chan(int, char *, char *, int, char *);
63     void botnet_send_chat(int, char *, char *);
64     void botnet_send_act(int, char *, char *, int, char *);
65     void botnet_send_ping(int);
66     void botnet_send_pong(int);
67 guppy 1.2 void botnet_send_priv EGG_VARARGS(int, arg1);
68 segfault 1.1 void botnet_send_who(int, char *, char *, int);
69     void botnet_send_infoq(int, char *);
70     void botnet_send_unlinked(int, char *, char *);
71     void botnet_send_traced(int, char *, char *);
72     void botnet_send_trace(int, char *, char *, char *);
73     void botnet_send_unlink(int, char *, char *, char *, char *);
74     void botnet_send_link(int, char *, char *, char *);
75     void botnet_send_update(int, tand_t *);
76     void botnet_send_nlinked(int, char *, char *, char, int);
77     void botnet_send_reject(int, char *, char *, char *, char *, char *);
78     void botnet_send_zapf(int, char *, char *, char *);
79     void botnet_send_zapf_broad(int, char *, char *, char *);
80     void botnet_send_motd(int, char *, char *);
81     void botnet_send_filereq(int, char *, char *, char *);
82     void botnet_send_filereject(int, char *, char *, char *);
83     void botnet_send_filesend(int, char *, char *, char *);
84     void botnet_send_away(int, char *, int, char *, int);
85     void botnet_send_idle(int, char *, int, int, char *);
86     void botnet_send_join_idx(int, int);
87     void botnet_send_join_party(int, int, int, int);
88     void botnet_send_part_idx(int, char *);
89     void botnet_send_part_party(int, int, char *, int);
90     void botnet_send_bye();
91     void botnet_send_nkch_part(int, int, char *);
92     void botnet_send_nkch(int, char *);
93    
94 guppy 1.3 #endif /* MAKING_MODS */
95 segfault 1.1
96     #define b_status(a) (dcc[a].status)
97     #define b_version(a) (dcc[a].u.bot->version)
98     #define b_linker(a) (dcc[a].u.bot->linker)
99     #define b_numver(a) (dcc[a].u.bot->numver)
100    
101     #define safe_str(a) (a ? a : "")
102 guppy 1.3
103     #endif /* _EGG_TANDEM_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23