/[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.7 - (hide annotations) (download) (as text)
Sat Aug 19 14:17:28 2000 UTC (19 years, 2 months ago) by fabian
Branch: MAIN
CVS Tags: eggdrop105040
Changes since 1.6: +1 -3 lines
File MIME type: text/x-csrc
Tothwolf's no_safe_str patch; minor fix to make it compile

1 fabian 1.3 /*
2     * tandem.h
3     *
4 fabian 1.7 * $Id: tandem.h,v 1.6 2000/01/31 23:03:01 fabian Exp $
5 fabian 1.3 */
6     /*
7     * Copyright (C) 1997 Robey Pointer
8 fabian 1.4 * Copyright (C) 1999, 2000 Eggheads
9 fabian 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 segfault 1.1 */
24    
25 fabian 1.3 #ifndef _EGG_TANDEM_H
26     #define _EGG_TANDEM_H
27 segfault 1.1
28 fabian 1.5 /* Keep track of tandem-bots in the chain */
29 segfault 1.1 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 fabian 1.5 /* Keep track of party-line members */
39 segfault 1.1 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 fabian 1.5 time_t timer; /* Track idle time */
48 segfault 1.1 char *away;
49     } party_t;
50    
51 fabian 1.5 /* Status: */
52     #define PLSTAT_AWAY 0x001
53     #define IS_PARTY 0x002
54 segfault 1.1
55 fabian 1.5 /* Minimum version that uses tokens & base64 ints
56     * for channel msg's
57     */
58 segfault 1.1 #define NEAT_BOTNET 1029900
59     #define GLOBAL_CHANS 100000
60    
61 fabian 1.5
62 segfault 1.1 #ifndef MAKING_MODS
63 fabian 1.5
64 segfault 1.1 void send_tand_but(int, char *, int);
65     void botnet_send_chan(int, char *, char *, int, char *);
66     void botnet_send_chat(int, char *, char *);
67     void botnet_send_act(int, char *, char *, int, char *);
68     void botnet_send_ping(int);
69     void botnet_send_pong(int);
70 fabian 1.2 void botnet_send_priv EGG_VARARGS(int, arg1);
71 segfault 1.1 void botnet_send_who(int, char *, char *, int);
72     void botnet_send_infoq(int, char *);
73     void botnet_send_unlinked(int, char *, char *);
74     void botnet_send_traced(int, char *, char *);
75     void botnet_send_trace(int, char *, char *, char *);
76     void botnet_send_unlink(int, char *, char *, char *, char *);
77     void botnet_send_link(int, char *, char *, char *);
78     void botnet_send_update(int, tand_t *);
79     void botnet_send_nlinked(int, char *, char *, char, int);
80     void botnet_send_reject(int, char *, char *, char *, char *, char *);
81     void botnet_send_zapf(int, char *, char *, char *);
82     void botnet_send_zapf_broad(int, char *, char *, char *);
83     void botnet_send_motd(int, char *, char *);
84     void botnet_send_filereq(int, char *, char *, char *);
85     void botnet_send_filereject(int, char *, char *, char *);
86     void botnet_send_filesend(int, char *, char *, char *);
87     void botnet_send_away(int, char *, int, char *, int);
88     void botnet_send_idle(int, char *, int, int, char *);
89     void botnet_send_join_idx(int, int);
90     void botnet_send_join_party(int, int, int, int);
91     void botnet_send_part_idx(int, char *);
92     void botnet_send_part_party(int, int, char *, int);
93     void botnet_send_bye();
94     void botnet_send_nkch_part(int, int, char *);
95     void botnet_send_nkch(int, char *);
96 fabian 1.6 int bots_in_subtree(tand_t *);
97     int users_in_subtree(tand_t *);
98 segfault 1.1
99 fabian 1.3 #endif /* MAKING_MODS */
100 segfault 1.1
101    
102 fabian 1.5 #define b_status(a) (dcc[a].status)
103     #define b_version(a) (dcc[a].u.bot->version)
104     #define b_linker(a) (dcc[a].u.bot->linker)
105     #define b_numver(a) (dcc[a].u.bot->numver)
106 fabian 1.3
107     #endif /* _EGG_TANDEM_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23