ircbot.c  0.3.0
Multi-platform IRC bot in pure C
IRC_Bot Struct Reference

Struct holding relevant data to the actual bot. More...

#include <bot.h>

Data Fields

char * nick
 Nick visible on the IRC server. More...
 
char ** channels
 List of channels currently connected to. More...
 
struct IRC_Connectionconnection
 Pointer to the IRC_Connection structure. More...
 
Bot_Commandcommands [BOT_MAX_COMMANDS]
 Array of pointers to Bot_Command structures. More...
 
int newest_cmd
 Specifies the ID of the last command added, not to be used outside of bot_ functions.
 
char last_msg [BOT_MAX_MSGLEN]
 Last received message. More...
 
int last_channel_id
 Index of the last channel joined. More...
 

Detailed Description

Struct holding relevant data to the actual bot.

Field Documentation

◆ channels

char** IRC_Bot::channels

List of channels currently connected to.

◆ commands

Bot_Command* IRC_Bot::commands[BOT_MAX_COMMANDS]

Array of pointers to Bot_Command structures.

◆ connection

struct IRC_Connection* IRC_Bot::connection

Pointer to the IRC_Connection structure.

◆ last_channel_id

int IRC_Bot::last_channel_id

Index of the last channel joined.

◆ last_msg

char IRC_Bot::last_msg[BOT_MAX_MSGLEN]

Last received message.

See also
BOT_MAX_MSGLEN.

◆ nick

char* IRC_Bot::nick

Nick visible on the IRC server.


The documentation for this struct was generated from the following file: