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.
 
 
 

17 lines
395 B

#include <stb_ds.h>
#include "better_IrcMessage.h"
#include "better_alloc.h"
void IrcMessage_free_all(IrcMessage* m)
{
if (m->name) BETTER_FREE(m->name);
if (m->command) BETTER_FREE(m->command);
IrcMessage_free_params(m);
}
void IrcMessage_free_params(IrcMessage* m)
{
for (int i = 0; i < arrlen(m->params); ++i)
BETTER_FREE(m->params[i]);
arrfree(m->params);
}