/[cvs]/eggdrop1.9/modules/botnet/botnet.h
ViewVC logotype

Contents of /eggdrop1.9/modules/botnet/botnet.h

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Aug 18 22:32:24 2007 UTC (11 years, 8 months ago) by sven
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +10 -6 lines
File MIME type: text/x-csrc
Due to some time without internet access this commit is kinda random stuff
thrown together:

 * Moved the int <-> base64 functions to base64.c
 * Added botnet event on_login. This is triggered every time someone logs
   into a bot.
 * Documented some of xml functions.
 * Fixed a xml memory leak. (perhaps. That suff still confuses me.)
 * Fixed a xml bug that crashed the bot if there were comments in an xml file.
 * Wrote about half of the new botnet module. (The easy part.)
 * The version of linked bots is now actually saved and transmitted in the
   oldbotnet module.

 * Added a xml node to the botnet_bot_t struct. This can be used to save any
   kind of information a module or scriptwriter might want to keep for this
   bot. This information has the same lifetime as the bot it refers to and
   is never saved. If the bot leaves the botnet, the information is gone
   unless someone copies it somewhere else befor that happens.
   Depending on how this works out, this xml node might be removed again or
   added to some more data structs like users, partymembers, channels, and
   so on.

1 /* oldbotnet.h: header for oldbotnet.c
2 *
3 * Copyright (C) 2003, 2004 Eggheads Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 *
19 * $Id: botnet.h,v 1.1 2007-06-03 23:43:45 sven Exp $
20 */
21
22 #ifndef _EGG_MOD_BOTNET_BOTNET_H_
23 #define _EGG_MOD_BOTNET_BOTNET_H_
24
25 #define bothandler botnet_LTX_bothandler
26
27 typedef struct {
28 int dummy;
29 } bot_proto_t;
30
31 typedef struct {
32 botnet_bot_t *bot;
33 user_t *user;
34 int idx;
35 bot_proto_t *proto;
36 char *pass;
37 int incoming;
38 int linking;
39 int idle;
40 } bot_t;
41
42 /* From events.c */
43 botnet_handler_t bothandler;
44
45 #endif /* !_EGG_MOD_BOTNET_BOTNET_H_ */

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23