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

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

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


Revision 1.1.1.1 - (hide annotations) (download) (as text) (vendor branch)
Mon Jul 26 21:11:06 2010 UTC (9 years, 1 month ago) by simple
Branch: eggheads, MAIN
CVS Tags: v1, HEAD
Branch point for: gettext
Changes since 1.1: +0 -0 lines
File MIME type: text/x-csrc
Imported Eggdrop 1.6.20

1 simple 1.1 /*
2     * tandem.h
3     *
4     * $Id: tandem.h,v 1.1.1.1 2010/07/26 21:11:06 simple Exp $
5     */
6     /*
7     * Copyright (C) 1997 Robey Pointer
8     * Copyright (C) 1999 - 2010 Eggheads Development Team
9     *
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    
25     #ifndef _EGG_TANDEM_H
26     #define _EGG_TANDEM_H
27    
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 0x001
53     #define IS_PARTY 0x002
54    
55     /* Minimum version that uses tokens & base64 ints
56     * for channel msg's
57     */
58     #define NEAT_BOTNET 1029900
59     #define GLOBAL_CHANS 100000
60    
61    
62     #ifndef MAKING_MODS
63    
64     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     void botnet_send_priv EGG_VARARGS(int, arg1);
71     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     int bots_in_subtree(tand_t *);
97     int users_in_subtree(tand_t *);
98    
99     #endif /* MAKING_MODS */
100    
101    
102     #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    
107     #endif /* _EGG_TANDEM_H */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23