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

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

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


Revision 1.10 - (show annotations) (download) (as text)
Sun May 5 16:40:38 2002 UTC (17 years, 5 months ago) by tothwolf
Branch: MAIN
Changes since 1.9: +5 -4 lines
File MIME type: text/x-csrc
Grafted GPL header onto newer files.
Storing rcsid in binary files now.

1 /*
2 * tandem.h --
3 */
4 /*
5 * Copyright (C) 1997 Robey Pointer
6 * Copyright (C) 1999, 2000, 2001, 2002 Eggheads Development Team
7 *
8 * 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 *
13 * 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 *
18 * 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 */
22 /*
23 * $Id$
24 */
25
26 #ifndef _EGG_TANDEM_H
27 #define _EGG_TANDEM_H
28
29 /* Keep track of tandem-bots in the chain */
30 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 /* Keep track of party-line members */
40 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 time_t timer; /* Track idle time */
49 char *away;
50 } party_t;
51
52 /* Status: */
53 #define PLSTAT_AWAY 0x001
54 #define IS_PARTY 0x002
55
56 /* Minimum version that uses tokens & base64 ints
57 * for channel msg's
58 */
59 #define NEAT_BOTNET 1029900
60 #define GLOBAL_CHANS 100000
61
62
63 #ifndef MAKING_MODS
64
65 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 void botnet_send_priv EGG_VARARGS(int, arg1);
72 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 int bots_in_subtree(tand_t *);
98 int users_in_subtree(tand_t *);
99
100 #endif /* MAKING_MODS */
101
102
103 #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
108 #endif /* !_EGG_TANDEM_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23