#include "ChanUser.h"
#include "UserNode.h"
#include "BanNode.h"
+#include "log.h"
static int modes_with_strarg, modes_with_intarg, modes_count;
struct ModeNode *modes = malloc(sizeof(*modes));
if (!modes)
{
- perror("malloc() failed");
+ printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
return NULL;
}
modes->chan = chan;