X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FChanNode.c;h=44a335f1cb822f2d7c414ebeef955781c93601c1;hp=41bbd455fd9d0df9783eb13860434ab700f86175;hb=HEAD;hpb=88751acefe20e568fc945d7e5f5c11e0a9c7be60 diff --git a/src/ChanNode.c b/src/ChanNode.c index 41bbd45..44a335f 100644 --- a/src/ChanNode.c +++ b/src/ChanNode.c @@ -22,6 +22,7 @@ #include "ModeNode.h" #include "IRCEvents.h" #include "tools.h" +#include "log.h" static struct ChanNode **chanList; @@ -131,7 +132,7 @@ struct ChanNode* addChannel(const char *name) { struct ChanNode *chan = malloc(sizeof(*chan)); if (!chan) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } strcpy(chan->name, name);