/[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.11 - (hide annotations) (download) (as text)
Sun Sep 22 01:25:19 2002 UTC (17 years ago) by stdarg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
File MIME type: text/x-csrc
FILE REMOVED
* Remove unnecessary files (botnet stuff)

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

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23