X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FChanNode.c;h=44a335f1cb822f2d7c414ebeef955781c93601c1;hp=4dd16b34744ad6b313622778bfd5d0d5b26a56e2;hb=HEAD;hpb=854e38b76f6ca963c0def2dd0e71153a56f2930c diff --git a/src/ChanNode.c b/src/ChanNode.c index 4dd16b3..44a335f 100644 --- a/src/ChanNode.c +++ b/src/ChanNode.c @@ -1,4 +1,4 @@ -/* ChanNode.c - NeonServ v5.5 +/* ChanNode.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -21,6 +21,8 @@ #include "modcmd.h" #include "ModeNode.h" #include "IRCEvents.h" +#include "tools.h" +#include "log.h" static struct ChanNode **chanList; @@ -130,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);