A virtual currency betting bot for Twitch chat. https://ddark.net/better
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
better/src/better_IrcMessage.h

26 lines
459 B

#ifndef BETTER_IRCMESSAGE_H
#define BETTER_IRCMESSAGE_H
#include <vector>
struct IrcMessage
{
char* name = NULL;
char* command = NULL;
std::vector<char*> params;
void free_all()
{
if (name) free(name);
if (command) free(command);
free_params();
}
void free_params()
{
for (auto it = params.begin(); it != params.end(); ++it)
free(*it);
}
};
#endif // BETTER_IRCMESSAGE_H