#include <botnet.h>
This struct contains only the minimum information nesessary to maintain the botnet. All the messy details are stored in the module's or script's client_data.
Definition at line 71 of file botnet.h.
Data Fields | |
char * | name |
The name of the bot. | |
unsigned | flags |
Some flags. | |
user_t * | user |
The user entry for this bot. NULL if it's not local. | |
struct botnet_bot * | uplink |
The bot directly linked to this bot. NULL if it's local. | |
struct botnet_bot * | direction |
The bot we have to talk to to reach this bot. Must not be NULL. | |
botnet_handler_t * | handler |
Handler struct containing functions to call to get stuff done. May be NULL if it's not local.. | |
void * | client_data |
Some data passed back to every callback function. | |
event_owner_t * | owner |
The owner of this bot. | |
partymember_t * | partys |
Start of the list of partymembers on this bot. | |
xml_node_t * | info |
Save anything you want here. | |
struct botnet_bot * | prev |
Previous bot in the list. | |
struct botnet_bot * | next |
Next bot in the list. | |
struct botnet_bot * | prev_local |
Previous bot in the list of local bots. NULL if this bot isn't local. | |
struct botnet_bot * | next_local |
Next bot in the list of local bots. NULL if this bot isn't local. |
char* botnet_bot::name |
The name of the bot.
Definition at line 72 of file botnet.h.
Referenced by botnet_check_direction(), botnet_delete(), botnet_new(), botnet_really_delete(), botnet_recursive_delete(), botnet_unlink(), got_nlinked(), got_thisbot(), idx_on_eof(), idx_on_read(), oldbotnet_on_eof(), oldbotnet_on_read(), on_bcast(), on_botbroadcast(), on_botmsg(), on_chanmsg(), on_extension(), on_join(), on_link(), on_login(), on_lost_bot(), on_new_bot(), on_nick(), on_part(), on_privmsg(), on_quit(), on_unlink(), party_bots(), partyline_idx_nick(), partymember_lookup(), and partymember_new().
unsigned botnet_bot::flags |
Some flags.
Definition at line 73 of file botnet.h.
Referenced by botnet_announce_login(), botnet_botbroadcast(), botnet_broadcast(), botnet_chanmsg(), botnet_cleanup(), botnet_count_subtree(), botnet_delete(), botnet_delete_by_owner(), botnet_extension(), botnet_lookup(), botnet_member_join(), botnet_member_part(), botnet_member_quit(), botnet_new(), botnet_really_delete(), botnet_recursive_delete(), botnet_recursive_replay_net(), and botnet_set_nick().
The user entry for this bot. NULL if it's not local.
Definition at line 74 of file botnet.h.
Referenced by botnet_delete(), botnet_link_success(), botnet_new(), botnet_recursive_delete(), and got_handshake().
struct botnet_bot* botnet_bot::uplink [read] |
The bot directly linked to this bot. NULL if it's local.
Definition at line 75 of file botnet.h.
Referenced by botnet_count_subtree(), botnet_delete(), botnet_new(), botnet_really_delete(), botnet_recursive_delete(), botnet_recursive_replay_net(), on_new_bot(), and on_unlink().
struct botnet_bot* botnet_bot::direction [read] |
The bot we have to talk to to reach this bot. Must not be NULL.
Definition at line 76 of file botnet.h.
Referenced by botnet_announce_login(), botnet_botbroadcast(), botnet_botmsg(), botnet_broadcast(), botnet_chanmsg(), botnet_check_direction(), botnet_delete(), botnet_extension(), botnet_link(), botnet_member_join(), botnet_member_part(), botnet_member_quit(), botnet_new(), botnet_set_nick(), botnet_unlink(), and partymember_msg().
Handler struct containing functions to call to get stuff done. May be NULL if it's not local..
Definition at line 77 of file botnet.h.
Referenced by botnet_announce_login(), botnet_botbroadcast(), botnet_botmsg(), botnet_broadcast(), botnet_chanmsg(), botnet_delete(), botnet_extension(), botnet_link(), botnet_member_join(), botnet_member_part(), botnet_member_quit(), botnet_new(), botnet_recursive_replay_net(), botnet_set_nick(), botnet_unlink(), and partymember_msg().
void* botnet_bot::client_data |
Some data passed back to every callback function.
Definition at line 78 of file botnet.h.
Referenced by botnet_announce_login(), botnet_botbroadcast(), botnet_botmsg(), botnet_broadcast(), botnet_chanmsg(), botnet_delete(), botnet_extension(), botnet_link(), botnet_member_join(), botnet_member_part(), botnet_member_quit(), botnet_new(), botnet_recursive_delete(), botnet_recursive_replay_net(), botnet_set_nick(), botnet_unlink(), get_entity(), got_endlink(), got_join(), got_nlinked(), got_ping(), got_versions(), and partymember_msg().
The owner of this bot.
Definition at line 79 of file botnet.h.
Referenced by botnet_delete_by_owner(), botnet_extension(), botnet_new(), and botnet_recursive_delete().
Start of the list of partymembers on this bot.
Definition at line 80 of file botnet.h.
Referenced by botnet_new(), botnet_recursive_replay_net(), partymember_count_by_bot(), partymember_delete_by_bot(), partymember_lookup(), partymember_new(), and partymember_really_delete().
Save anything you want here.
Definition at line 81 of file botnet.h.
Referenced by botnet_get_info(), botnet_new(), botnet_really_delete(), botnet_set_info(), and botnet_set_info_int().
struct botnet_bot* botnet_bot::prev [read] |
Previous bot in the list.
Definition at line 82 of file botnet.h.
Referenced by botnet_new(), and botnet_really_delete().
struct botnet_bot* botnet_bot::next [read] |
Next bot in the list.
Definition at line 83 of file botnet.h.
Referenced by botnet_cleanup(), botnet_count_subtree(), botnet_new(), botnet_really_delete(), botnet_recursive_delete(), botnet_recursive_replay_net(), party_bots(), and partymember_cleanup().
struct botnet_bot* botnet_bot::prev_local [read] |
Previous bot in the list of local bots. NULL if this bot isn't local.
Definition at line 84 of file botnet.h.
Referenced by botnet_new(), and botnet_really_delete().
struct botnet_bot* botnet_bot::next_local [read] |
Next bot in the list of local bots. NULL if this bot isn't local.
Definition at line 85 of file botnet.h.
Referenced by botnet_announce_login(), botnet_botbroadcast(), botnet_broadcast(), botnet_chanmsg(), botnet_delete(), botnet_delete_by_owner(), botnet_extension(), botnet_member_join(), botnet_member_part(), botnet_member_quit(), botnet_new(), botnet_really_delete(), and botnet_set_nick().